Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 40 lines 739 B view raw
1{ 2 lib, 3 stdenv, 4 makeWrapper, 5 nix, 6 skopeo, 7 jq, 8 coreutils, 9}: 10 11stdenv.mkDerivation { 12 name = "nix-prefetch-docker"; 13 14 nativeBuildInputs = [ makeWrapper ]; 15 16 dontUnpack = true; 17 18 installPhase = '' 19 install -vD ${./nix-prefetch-docker} $out/bin/$name; 20 wrapProgram $out/bin/$name \ 21 --prefix PATH : ${ 22 lib.makeBinPath [ 23 nix 24 skopeo 25 jq 26 coreutils 27 ] 28 } \ 29 --set HOME /homeless-shelter 30 ''; 31 32 preferLocalBuild = true; 33 34 meta = with lib; { 35 description = "Script used to obtain source hashes for dockerTools.pullImage"; 36 mainProgram = "nix-prefetch-docker"; 37 maintainers = with maintainers; [ offline ]; 38 platforms = platforms.unix; 39 }; 40}