mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 08:36:41 +01:00
26 lines
590 B
Nix
26 lines
590 B
Nix
{ stdenv, makeWrapper, nix, skopeo }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nix-prefetch-docker";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
install -vD ${./nix-prefetch-docker} $out/bin/$name;
|
|
wrapProgram $out/bin/$name \
|
|
--prefix PATH : ${makeBinPath [ nix skopeo ]} \
|
|
--set HOME /homeless-shelter
|
|
'';
|
|
|
|
preferLocalBuild = true;
|
|
|
|
meta = {
|
|
description = "Script used to obtain source hashes for dockerTools.pullImage";
|
|
maintainers = with maintainers; [ offline ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|