-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
NIX_BUILD_TOP not set correctly outside of nixos #3142
Comments
A user on IRC just encountered this, the error was
Logs including solution: https://logs.nix.samueldr.com/nixos/2019-10-12#1570910798-1570911855; |
For posterity, to work around the issue, pass Edit: I've also now updated to nix 2.3.7 and the issue is resolved. I'm not sure what the first version containing that fix is though. |
It's fixed not in |
I marked this as stale due to inactivity. → More info |
https://gist.github.com/a0722abf36a1cfc5cadf8e39c356fba5
for some weird reason, if the sandbox is on, but nix cant get root, then the working dir, and the
$NIX_BUILD_TOP
wont agree on the directorythis results in things like
runCommand
being unable to follow$buildCommandPath
and then complaining about you needing to setsrc
orsrcs
The text was updated successfully, but these errors were encountered: