diff options
author | markuskowa <markus.kowalewski@gmail.com> | 2019-08-31 19:26:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-31 19:26:45 +0200 |
commit | ca15c0bd6073d053c9887fb9e92ea08c92051064 (patch) | |
tree | ccc77e9e7451328e292a7318e1c8d554088cdf57 /pkgs/tools/nix | |
parent | aeeed6a5176df8e44098761e74e64a13d88b8aa9 (diff) | |
parent | 66ed329b99402bed21ae7834994720a68f3149e1 (diff) | |
download | nixpkgs-ca15c0bd6073d053c9887fb9e92ea08c92051064.tar nixpkgs-ca15c0bd6073d053c9887fb9e92ea08c92051064.tar.gz nixpkgs-ca15c0bd6073d053c9887fb9e92ea08c92051064.tar.bz2 nixpkgs-ca15c0bd6073d053c9887fb9e92ea08c92051064.tar.lz nixpkgs-ca15c0bd6073d053c9887fb9e92ea08c92051064.tar.xz nixpkgs-ca15c0bd6073d053c9887fb9e92ea08c92051064.tar.zst nixpkgs-ca15c0bd6073d053c9887fb9e92ea08c92051064.zip |
Merge pull request #67820 from Lassulus/nixos-generators
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 00000000000..4e51b9b46dd --- /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; + }; +} |