blob: 1199fabccefa8965a3c1156bf42eaa334e628b61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
stdenv,
makeWrapper,
nix,
skopeo,
jq,
coreutils,
}:
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 : ${
lib.makeBinPath [
nix
skopeo
jq
coreutils
]
} \
--set HOME /homeless-shelter
'';
preferLocalBuild = true;
meta = {
description = "Script used to obtain source hashes for dockerTools.pullImage";
mainProgram = "nix-prefetch-docker";
maintainers = [ ];
platforms = lib.platforms.unix;
};
}
|