mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
26 lines
639 B
Nix
26 lines
639 B
Nix
{ lib, stdenv, makeWrapper, nix, skopeo, jq }:
|
|
|
|
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 ]} \
|
|
--set HOME /homeless-shelter
|
|
'';
|
|
|
|
preferLocalBuild = true;
|
|
|
|
meta = with lib; {
|
|
description = "Script used to obtain source hashes for dockerTools.pullImage";
|
|
mainProgram = "nix-prefetch-docker";
|
|
maintainers = with maintainers; [ offline ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|