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