1 { stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix }:
3 stdenv.mkDerivation rec {
4 pname = "nixos-generators";
6 src = fetchFromGitHub {
7 owner = "nix-community";
8 repo = "nixos-generators";
10 sha256 = "sha256-WecDwDY/hEcDQYzFnccCNa+5Umht0lfjx/d1qGDy/rQ=";
12 nativeBuildInputs = [ makeWrapper ];
13 installFlags = [ "PREFIX=$(out)" ];
15 wrapProgram $out/bin/nixos-generate \
16 --prefix PATH : ${lib.makeBinPath [ jq coreutils findutils nix ] }
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 mainProgram = "nixos-generate";
25 platforms = platforms.unix;