nixpkgs-suyu/pkgs/build-support/docker/nix-prefetch-docker.nix

27 lines
597 B
Nix
Raw Normal View History

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