587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
25 lines
639 B
Nix
25 lines
639 B
Nix
{ lib, stdenv, makeWrapper, nix, skopeo, jq }:
|
|
|
|
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 ]} \
|
|
--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;
|
|
};
|
|
}
|