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

25 lines
598 B
Nix
Raw Normal View History

2021-01-24 01:40:18 +01:00
{ lib, stdenv, makeWrapper, nix, skopeo, jq }:
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 \
2021-01-24 01:40:18 +01:00
--prefix PATH : ${lib.makeBinPath [ nix skopeo jq ]} \
--set HOME /homeless-shelter
'';
preferLocalBuild = true;
2021-01-24 01:40:18 +01:00
meta = with lib; {
description = "Script used to obtain source hashes for dockerTools.pullImage";
maintainers = with maintainers; [ offline ];
platforms = platforms.unix;
};
}