2024-06-30 08:16:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
makeWrapper,
|
|
|
|
nix,
|
|
|
|
skopeo,
|
|
|
|
jq,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nix-prefetch-docker";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -vD ${./nix-prefetch-docker} $out/bin/$name;
|
|
|
|
wrapProgram $out/bin/$name \
|
2024-06-30 08:16:52 +00:00
|
|
|
--prefix PATH : ${
|
|
|
|
lib.makeBinPath [
|
|
|
|
nix
|
|
|
|
skopeo
|
|
|
|
jq
|
|
|
|
]
|
|
|
|
} \
|
2024-05-02 00:46:19 +00:00
|
|
|
--set HOME /homeless-shelter
|
|
|
|
'';
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Script used to obtain source hashes for dockerTools.pullImage";
|
|
|
|
mainProgram = "nix-prefetch-docker";
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|