forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#67820 from Lassulus/nixos-generators
nixos-generators: init at 1.0.0
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters