Skip to content
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

dev-shell does not work with __structuredAttrs #3540

Closed
PkmX opened this issue Apr 27, 2020 · 0 comments
Closed

dev-shell does not work with __structuredAttrs #3540

PkmX opened this issue Apr 27, 2020 · 0 comments

Comments

@PkmX
Copy link

PkmX commented Apr 27, 2020

derivation {
  name = "test";
  builder = "/usr/bin/bash";
  __structuredAttrs = true;
  system = builtins.currentSystem;
}
$ nix dev-shell '(import ./test.nix)' --option sandbox false
builder for '/nix/store/vaqkx2abjq2yynw3fbf8y3193lpb5kq2--env.drv' failed with exit code 1; last 1 log lines:
  bash: $out: ambiguous redirect

This seems to be related to #3525, since that is the error message you get if you try to redirect to a non-existent variable $out. The dev environment needs to source .attrs.sh first and then redirects to ${outputs[out]}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant