1 { stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix, bash }:
3 stdenv.mkDerivation rec {
4 pname = "nixos-generators";
6 src = fetchFromGitHub {
7 owner = "nix-community";
8 repo = "nixos-generators";
10 sha256 = "sha256-wHmtB5H8AJTUaeGHw+0hsQ6nU4VyvVrP2P4NeCocRzY=";
13 nativeBuildInputs = [ makeWrapper ];
14 buildInputs = [ bash ];
15 installFlags = [ "PREFIX=$(out)" ];
17 wrapProgram $out/bin/nixos-generate \
18 --prefix PATH : ${lib.makeBinPath [ jq coreutils findutils nix ] }
22 description = "Collection of image builders";
23 homepage = "https://github.com/nix-community/nixos-generators";
24 license = licenses.mit;
25 maintainers = with maintainers; [ lassulus ];
26 mainProgram = "nixos-generate";
27 platforms = platforms.unix;