1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

Merge pull request #67820 from Lassulus/nixos-generators

nixos-generators: init at 1.0.0
This commit is contained in:
markuskowa 2019-08-31 19:26:45 +02:00 committed by GitHub
commit ca15c0bd60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -24101,6 +24101,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 { };