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";
2022-08-11 12:20:44 +00:00
version = "1.7.0";
2019-08-31 08:59:24 +00:00
src = fetchFromGitHub {
owner = "nix-community";
repo = "nixos-generators";
rev = version;
2022-08-11 12:20:44 +00:00
sha256 = "sha256-WecDwDY/hEcDQYzFnccCNa+5Umht0lfjx/d1qGDy/rQ=";
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;
};
}