02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
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.7.0";
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nixos-generators";
|
|
rev = version;
|
|
sha256 = "sha256-WecDwDY/hEcDQYzFnccCNa+5Umht0lfjx/d1qGDy/rQ=";
|
|
};
|
|
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;
|
|
};
|
|
}
|