mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
dde3e8edf4
Otheriwse running the tool fails with line 41: jq: command not found
27 lines
597 B
Nix
27 lines
597 B
Nix
{ stdenv, makeWrapper, nix, skopeo, jq }:
|
|
|
|
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 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;
|
|
};
|
|
}
|