diff options
author | lassulus <lassulus@lassul.us> | 2019-08-31 10:59:24 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-08-31 12:37:07 +0200 |
commit | 66ed329b99402bed21ae7834994720a68f3149e1 (patch) | |
tree | 7e83b94a1bbf86ce21ce2590d2226e7333fcddd9 /pkgs/tools/nix | |
parent | 3059cd038c4ec45fd14a3ced5a90dc2272060d12 (diff) |
nixos-generators: init at 1.0.0
Diffstat (limited to 'pkgs/tools/nix')
-rw-r--r-- | pkgs/tools/nix/nixos-generators/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/nix/nixos-generators/default.nix b/pkgs/tools/nix/nixos-generators/default.nix new file mode 100644 index 000000000000..4e51b9b46dd3 --- /dev/null +++ b/pkgs/tools/nix/nixos-generators/default.nix @@ -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; + }; +} |