@@ -48,7 +48,7 @@ let
4848 # A user is required by nix
4949 # https://github.com/NixOS/nix/blob/9348f9291e5d9e4ba3c4347ea1b235640f54fd79/src/libutil/util.cc#L478
5050 export USER=nobody
51− ${nix}/bin/nix-store --load-db < ${closureInfo {rootPaths = contentsList;}}/registration
51+ ${buildPackages.nix}/bin/nix-store --load-db < ${closureInfo {rootPaths = contentsList;}}/registration
5252
5353 mkdir -p nix/var/nix/gcroots/docker/
5454 for i in ${lib.concatStringsSep " " contentsList}; do
@@ -443,7 +443,7 @@ rec {
443443 runCommand "${name}.tar.gz" {
444444 inherit (stream) imageName;
445445 passthru = { inherit (stream) imageTag; };
446− buildInputs = [ pigz ];
446+ nativeBuildInputs = [ pigz ];
447447 } "${stream} | pigz -nT > $out";
448448
449449 # 1. extract the base image
@@ -762,7 +762,7 @@ rec {
762762 else
763763 lib.head (lib.strings.splitString "-" (baseNameOf conf.outPath));
764764 paths = referencesByPopularity overallClosure;
765− buildInputs = [ jq ];
765+ nativeBuildInputs = [ jq ];
766766 } ''
767767 ${if (tag == null) then ''
768768 outName="$(basename "$out")"
@@ -826,7 +826,7 @@ rec {
826826 # take images can know in advance how the image is supposed to be used.
827827 isExe = true;
828828 };
829− buildInputs = [ makeWrapper ];
829+ nativeBuildInputs = [ makeWrapper ];
830830 } ''
831831 makeWrapper ${streamScript} $out --add-flags ${conf}
832832 '';