2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, makeWrapper, nix, skopeo, jq }:
|
2020-04-24 23:36:52 +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 \
|
2021-02-05 17:12:51 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ nix skopeo jq ]} \
|
2020-04-24 23:36:52 +00:00
|
|
|
--set HOME /homeless-shelter
|
|
|
|
'';
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Script used to obtain source hashes for dockerTools.pullImage";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nix-prefetch-docker";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|