mirror of https://cgit.krebsco.de/krops/
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:
parent
140bdfdf6c
commit
21a894dc6f
|
@ -32,9 +32,9 @@ in
|
||||||
writeDash name ''
|
writeDash name ''
|
||||||
set -efu
|
set -efu
|
||||||
${populate { inherit force source; target = target'; }}
|
${populate { inherit force source; target = target'; }}
|
||||||
|
NIX_PATH=${lib.escapeShellArg target'.path} \
|
||||||
${nix}/bin/nix-build \
|
${nix}/bin/nix-build \
|
||||||
-A system \
|
-A system \
|
||||||
-I ${target'.path} \
|
|
||||||
--keep-going \
|
--keep-going \
|
||||||
--no-out-link \
|
--no-out-link \
|
||||||
--show-trace \
|
--show-trace \
|
||||||
|
|
Loading…
Reference in New Issue