2020-04-27 21:18:10 +02:00
|
|
|
{ stdenv, makeWrapper, nix, skopeo, jq }:
|
2019-03-26 12:33:43 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "nix-prefetch-docker";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2019-06-19 17:45:34 +02:00
|
|
|
dontUnpack = true;
|
2019-03-26 12:33:43 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -vD ${./nix-prefetch-docker} $out/bin/$name;
|
|
|
|
wrapProgram $out/bin/$name \
|
2020-04-27 21:18:10 +02:00
|
|
|
--prefix PATH : ${makeBinPath [ nix skopeo jq ]} \
|
2019-03-26 12:33:43 +01:00
|
|
|
--set HOME /homeless-shelter
|
|
|
|
'';
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Script used to obtain source hashes for dockerTools.pullImage";
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|