git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #47582 from srhb/dockerTools-nix-stable

dockerTools: Use nix instead of nixUnstable

commit976edf17bc4e95fdf75cd9995f71229f85e912d3 authorlewo <lewo@abesis.fr> dateMon 1 Oct 2018, 10:04 (8 years ago) parent56b4db9b256df4
1 file changed+4−4
pkgs/build-support/docker/default.nix+4−4
pkgs/build-support/docker/default.nix+4−4
@@ -10,7 +10,7 @@
1010 lib,
1111 pkgs,
1212 pigz,
13− nixUnstable,
13+ nix,
1414 perl,
1515 runCommand,
1616 rsync,
@@ -262,7 +262,7 @@ rec {
262262 '';
263263
264264 nixRegistration = contents: runCommand "nix-registration" {
265− buildInputs = [ nixUnstable perl ];
265+ buildInputs = [ nix perl ];
266266 # For obtaining the closure of `contents'.
267267 exportReferencesGraph =
268268 let contentsList = if builtins.isList contents then contents else [ contents ];
@@ -803,7 +803,7 @@ rec {
803803 echo " be better to only have one layer that contains a nix store."
804804 # This requires Nix 1.12 or higher
805805 export NIX_REMOTE=local?root=$PWD
806− ${nixUnstable}/bin/nix-store --load-db < ${nixRegistration contents}/db.dump
806+ ${nix}/bin/nix-store --load-db < ${nixRegistration contents}/db.dump
807807
808808 # We fill the store in order to run the 'verify' command that
809809 # generates hash and size of output paths.
@@ -814,7 +814,7 @@ rec {
814814 storePaths=$(cat ${nixRegistration contents}/storePaths)
815815 echo "Copying everything to /nix/store (will take a while)..."
816816 cp -prd $storePaths nix/store/
817− ${nixUnstable}/bin/nix-store --verify --check-contents
817+ ${nix}/bin/nix-store --verify --check-contents
818818
819819 mkdir -p nix/var/nix/gcroots/docker/
820820 for i in ${lib.concatStringsSep " " contents}; do