-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
runCommand fails when using __structuredAttrs #213641
Comments
Idk why it would be the case, but the error itself sounds like the $stdenv var is empty when trying to run default-builder.sh: nixpkgs/pkgs/stdenv/generic/default-builder.sh Lines 1 to 6 in 92247c1
Not sure if this might be related to 238a605 or if that's a red herring. |
I ended up here because someone reported a slightly different message on matrix ( That said, someone suggested that they try verifying the store, and they eventually reported that repairing the store solved the problem for then. I suspect this means their case isn't actually related to the issue here, but I decided to document it just in case it helps connect dots later. |
Works for me that error you're getting is from before structuredAttrs support was added, structuredAttrs currently only works on master/unstable. |
Describe the bug
The trivial
runCommand
builder (and friends) fails on a trivial derivation when__structuredAttrs
is set.Steps To Reproduce
Steps to reproduce the behaviour:
and get this error
Expected behavior
Derivation should build, akin to
Additional context
There is a partial workaround seen here where
builder
is set instead ofbuildCommand
, however this leaves the utility functions defined insetup.sh
unavailable to the builder.Notify maintainers
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: