pkgs writeTest: use NIX_PATH instead of -I

That way, nix-build won't accidentally "fallback" to stuff in the
system's NIX_PATH.
This commit is contained in:
tv 2018-12-13 09:55:09 +01:00
parent 140bdfdf6c
commit 21a894dc6f
1 changed files with 1 additions and 1 deletions

View File

@ -32,9 +32,9 @@ in
writeDash name ''
set -efu
${populate { inherit force source; target = target'; }}
NIX_PATH=${lib.escapeShellArg target'.path} \
${nix}/bin/nix-build \
-A system \
-I ${target'.path} \
--keep-going \
--no-out-link \
--show-trace \