-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
0.kind: bugSomething is brokenSomething is broken
Description
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:
- Build the following derivation:
runCommand "foo" {__structuredAttrs = true;} ''. .attrs.sh; mkdir ''${outputs[out]}''and get this error
error: builder for '/nix/store/vj7a0vhacspbvfjyngqf12iq8gj9vagz-foo.drv' failed with exit code 1;
last 1 log lines:
> /nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh: line 1: /setup: No such file or directory
For full logs, run 'nix log /nix/store/vj7a0vhacspbvfjyngqf12iq8gj9vagz-foo.drv'.
Expected behavior
Derivation should build, akin to
runCommand "foo" {} ''mkdir $out''Additional context
There is a partial workaround seen here where builder is set instead of buildCommand, however this leaves the utility functions defined in setup.sh unavailable to the builder.
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output hereReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken