@@ -0,0 +1,26 @@
1+{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "nixos-generators";
5+ version = "1.0.0";
6+ src = fetchFromGitHub {
7+ owner = "nix-community";
8+ repo = "nixos-generators";
9+ rev = version;
10+ sha256 = "10xncifdfhilxclxyf72h7dcfn8yn1h34qbkvdq9l76ghv5qjniq";
11+ };
12+ nativeBuildInputs = [ makeWrapper ];
13+ installFlags = [ "PREFIX=$(out)" ];
14+ postFixup = ''
15+ wrapProgram $out/bin/nixos-generate \
16+ --prefix PATH : ${lib.makeBinPath [ jq coreutils findutils nix ] }
17+ '';
18+
19+ meta = with stdenv.lib; {
20+ description = "Collection of image builders";
21+ homepage = "https://github.com/nix-community/nixos-generators";
22+ license = licenses.mit;
23+ maintainers = with maintainers; [ lassulus ];
24+ platforms = platforms.unix;
25+ };
26+}