2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
27 lines
852 B
Nix
27 lines
852 B
Nix
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nixos-generators";
|
|
version = "1.5.0";
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nixos-generators";
|
|
rev = version;
|
|
sha256 = "sha256-Icz/2Jl3eO4JnatU1iAFiMzVAQR9IDrsiqhOIvMkCS4=";
|
|
};
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
postFixup = ''
|
|
wrapProgram $out/bin/nixos-generate \
|
|
--prefix PATH : ${lib.makeBinPath [ jq coreutils findutils nix ] }
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Collection of image builders";
|
|
homepage = "https://github.com/nix-community/nixos-generators";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lassulus ];
|
|
mainProgram = "nixos-generate";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|