mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-08-16 23:51:00 +03:00
20 lines
390 B
Nix
20 lines
390 B
Nix
{
|
|
stdenv,
|
|
makeWrapper,
|
|
jq,
|
|
coreutils,
|
|
findutils,
|
|
lib,
|
|
}:
|
|
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]}
|
|
'';
|
|
}
|