Merge pull request #67820 from Lassulus/nixos-generators

nixos-generators: init at 1.0.0

authored by markuskowa and committed by GitHub ca15c0bd aeeed6a5

+28
+26
pkgs/tools/nix/nixos-generators/default.nix
···
··· 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 + }
+2
pkgs/top-level/all-packages.nix
··· 24101 24102 nixos-container = callPackage ../tools/virtualization/nixos-container { }; 24103 24104 norwester-font = callPackage ../data/fonts/norwester {}; 24105 24106 nut = callPackage ../applications/misc/nut { };
··· 24101 24102 nixos-container = callPackage ../tools/virtualization/nixos-container { }; 24103 24104 + nixos-generators = callPackage ../tools/nix/nixos-generators { }; 24105 + 24106 norwester-font = callPackage ../data/fonts/norwester {}; 24107 24108 nut = callPackage ../applications/misc/nut { };