Skip to content
Snippets Groups Projects
Commit 58204a3c authored by Shea Levy's avatar Shea Levy Committed by Eelco Dolstra
Browse files

corepkgs/nar.nix: Prefer local builds


nar.nix's builder depends on coreutils and nix itself being in $PATH.
Unfortunately, there's no good way to ensure that these packages exist
in the same place on the remote machine: The local machine may have nix
installed in /usr, and the remote machine in /usr/local, but the
generated nar.sh builder will refer to /usr and thus fail on the remote
machine. This ensures that nar.sh is run on the same machine that
instantiates it.

Signed-off-by: default avatarShea Levy <shea@shealevy.com>
parent 3fb7ae05
No related branches found
No related tags found
No related merge requests found
......@@ -43,4 +43,7 @@ derivation {
# Don't build in a chroot because Nix's dependencies may not be there.
__noChroot = true;
# Remote machines may not have ${nixBinDir} or ${coreutils} in the same prefixes
preferLocalBuild = true;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment