nixpkgs/pkgs/tools/nix/nixos-generators/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
904 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix, bash }:
2019-08-31 08:59:24 +00:00
stdenv.mkDerivation rec {
pname = "nixos-generators";
2023-09-26 07:33:42 +00:00
version = "1.8.0";
2019-08-31 08:59:24 +00:00
src = fetchFromGitHub {
owner = "nix-community";
repo = "nixos-generators";
rev = version;
2023-09-26 07:33:42 +00:00
sha256 = "sha256-wHmtB5H8AJTUaeGHw+0hsQ6nU4VyvVrP2P4NeCocRzY=";
2019-08-31 08:59:24 +00:00
};
strictDeps = true;
2019-08-31 08:59:24 +00:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bash ];
2019-08-31 08:59:24 +00:00
installFlags = [ "PREFIX=$(out)" ];
postFixup = ''
wrapProgram $out/bin/nixos-generate \
--prefix PATH : ${lib.makeBinPath [ jq coreutils findutils nix ] }
'';
meta = with lib; {
2019-08-31 08:59:24 +00:00
description = "Collection of image builders";
homepage = "https://github.com/nix-community/nixos-generators";
license = licenses.mit;
maintainers = with maintainers; [ lassulus ];
mainProgram = "nixos-generate";
2019-08-31 08:59:24 +00:00
platforms = platforms.unix;
};
}