{ pkgs ? import {} }: with pkgs; stdenv.mkDerivation { name = "nixos-generators"; src = lib.cleanSource ./.; nativeBuildInputs = [ makeWrapper ]; installFlags = [ "PREFIX=$(out)" ]; postFixup = '' wrapProgram $out/bin/nixos-generate \ --prefix PATH : ${lib.makeBinPath [ jq coreutils findutils nix ] } ''; }