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.

27 lines
816 B
Nix
Raw Normal View History

2019-08-31 08:59:24 +00:00
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix }:
stdenv.mkDerivation rec {
pname = "nixos-generators";
2021-11-08 16:23:59 +00:00
version = "1.5.0";
2019-08-31 08:59:24 +00:00
src = fetchFromGitHub {
owner = "nix-community";
repo = "nixos-generators";
rev = version;
2021-11-08 16:23:59 +00:00
sha256 = "sha256-Icz/2Jl3eO4JnatU1iAFiMzVAQR9IDrsiqhOIvMkCS4=";
2019-08-31 08:59:24 +00:00
};
nativeBuildInputs = [ makeWrapper ];
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 ];
platforms = platforms.unix;
};
}