make-closure needs build system mkdir and jq

Make make-closure work when cross-compiling
This commit is contained in:
Daniel Barlow 2018-06-29 23:16:39 +00:00
parent 85497a3b06
commit f9f6ddc083

View file

@ -4,7 +4,7 @@
# "nix-store --load-db" and "nix-store --register-validity # "nix-store --load-db" and "nix-store --register-validity
# --hash-given". # --hash-given".
{ stdenv, coreutils, jq }: { stdenv, coreutils, jq, buildPackages }:
{ rootPaths }: { rootPaths }:
@ -17,7 +17,7 @@ stdenv.mkDerivation {
exportReferencesGraph.closure = rootPaths; exportReferencesGraph.closure = rootPaths;
PATH = "${coreutils}/bin:${jq}/bin"; PATH = "${buildPackages.coreutils}/bin:${buildPackages.jq}/bin";
builder = builtins.toFile "builder" builder = builtins.toFile "builder"
'' ''