2023-03-07 16:13:44 +00:00
|
|
|
{ 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
|
|
|
};
|
2023-03-07 16:13:44 +00:00
|
|
|
strictDeps = true;
|
2019-08-31 08:59:24 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2023-03-07 16:13:44 +00:00
|
|
|
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 ] }
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
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 ];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "nixos-generate";
|
2019-08-31 08:59:24 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|