Files
nixpkgs/pkgs/build-support/docker/nix-prefetch-docker.nix
2026-02-11 11:42:06 +01:00

41 lines
707 B
Nix

{
lib,
stdenv,
makeWrapper,
nix,
skopeo,
jq,
coreutils,
}:
stdenv.mkDerivation {
name = "nix-prefetch-docker";
nativeBuildInputs = [ makeWrapper ];
dontUnpack = true;
installPhase = ''
install -vD ${./nix-prefetch-docker} $out/bin/$name;
wrapProgram $out/bin/$name \
--prefix PATH : ${
lib.makeBinPath [
nix
skopeo
jq
coreutils
]
} \
--set HOME /homeless-shelter
'';
preferLocalBuild = true;
meta = {
description = "Script used to obtain source hashes for dockerTools.pullImage";
mainProgram = "nix-prefetch-docker";
maintainers = [ ];
platforms = lib.platforms.unix;
};
}