New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flakes devShells recently broke with weird error #138157
Comments
The cause of this seems to be the Flake profile containing a |
That's correct, yeah. See #138186 for a temporary fix while the Nix issue is figured out, and NixOS/nix#5262 for details on the underlying Nix issue. (which I now realize is possibly a duplicate of the issue you linked? Not sure.) |
I've made a temporary fix for this issue, which just involves patching Nix (as opposed to patching stdenv and requiring a full rebuild): nix-community/nix-direnv#113 (comment). |
See NixOS/nixpkgs#138157, isMachO function contains an invalid UTF-8 character. This adds the temporary Nix patch from [this comment](nix-community/nix-direnv#113 (comment)) until their actual fix trickles down to nixpkgs master.
Credit to CRI EPITA for basic overlay code (from Nix PIE). This is a temporary workaround for NixOS/nixpkgs#138157.
This reappeared for me recently, after waiting several weeks for the fix to bubble through
|
@dcarosone What Nixpkgs commit? I cannot reproduce on commit 8e1eab9. |
It reappeared a couple of days ago, not entirely sure which commit. I had a big update with GNOME 41 that caused a bunch of other issues this morning 21.11pre323079. 2cf9db0 |
Hm. After removing |
@NobbZ I think we should be fine closing this issue by this point. |
The issue hasn't been mentioned in a while in the discord, thats true. |
* fixed brightness control in i3 * fixed memory/swap i3status format * added battery block to i3status * patched nix for flake bug RE NixOS/nixpkgs#138157
Describe the bug
Trying to enter a devshell for a flake errors weirdly:
Steps To Reproduce
nixUnstable
with experimental features forflakes
andnix-command
enabledflake.nix
from belownix develop
in the flake.Expected behavior
A dev shell is entered that has
gcc
Additional context
This has been observed so far on
nixpkgs-unstable
,nixos-unstable
andmaster
.Personall I was able to confirm with the following commits (of which I can't say anmore which branch they belong to:
I have to admit though, that we are not sure if this is a problem of
nixUnstable
ornixpkgs
.What I can say though we had at least 2 versions of nix (nightly as shown below and
2.4pre20210908_3c56f62
) in the mix and it broke for both of them.Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: