3
0
Fork 0
forked from mirrors/nixpkgs

nixos-generators: init at 1.0.0

This commit is contained in:
lassulus 2019-08-31 10:59:24 +02:00
parent 3059cd038c
commit 66ed329b99
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix }:
stdenv.mkDerivation rec {
pname = "nixos-generators";
version = "1.0.0";
src = fetchFromGitHub {
owner = "nix-community";
repo = "nixos-generators";
rev = version;
sha256 = "10xncifdfhilxclxyf72h7dcfn8yn1h34qbkvdq9l76ghv5qjniq";
};
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;
};
}

View file

@ -24103,6 +24103,8 @@ in
nixos-container = callPackage ../tools/virtualization/nixos-container { };
nixos-generators = callPackage ../tools/nix/nixos-generators { };
norwester-font = callPackage ../data/fonts/norwester {};
nut = callPackage ../applications/misc/nut { };