mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-22 10:05:06 +03:00
21 lines
403 B
Nix
21 lines
403 B
Nix
{
|
|
stdenv,
|
|
makeWrapper,
|
|
jq,
|
|
coreutils,
|
|
findutils,
|
|
lib,
|
|
gawk,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
name = "nixos-generate";
|
|
src = ./.;
|
|
meta.description = "Collection of image builders";
|
|
nativeBuildInputs = [makeWrapper];
|
|
installFlags = ["PREFIX=$(out)"];
|
|
postFixup = ''
|
|
wrapProgram $out/bin/nixos-generate \
|
|
--prefix PATH : ${lib.makeBinPath [jq coreutils findutils gawk]}
|
|
'';
|
|
}
|