2019-08-31 09:59:24 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nixos-generators";
|
2020-11-10 06:39:51 +00:00
|
|
|
version = "1.2.0";
|
2019-08-31 09:59:24 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "nixos-generators";
|
|
|
|
rev = version;
|
2020-11-10 06:39:51 +00:00
|
|
|
sha256 = "1iwc39hzvzzyndxwbnl3fck7phxnjpnhy8zn4nyp8is1fiw0648v";
|
2019-08-31 09:59:24 +01:00
|
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
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 09:59:24 +01:00
|
|
|
description = "Collection of image builders";
|
|
|
|
homepage = "https://github.com/nix-community/nixos-generators";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lassulus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|