mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
27 lines
824 B
Nix
27 lines
824 B
Nix
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nixos-generators";
|
|
version = "1.1.0";
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nixos-generators";
|
|
rev = version;
|
|
sha256 = "04cfhj42c2m7lafir9ksh36n3nhx3x20lhamyk4zc5p3pm1xdbs6";
|
|
};
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
postFixup = ''
|
|
wrapProgram $out/bin/nixos-generate \
|
|
--prefix PATH : ${lib.makeBinPath [ jq coreutils findutils nix ] }
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Collection of image builders";
|
|
homepage = "https://github.com/nix-community/nixos-generators";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lassulus ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|