mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
47ace7b0af
`fd "\.nix" pkgs/tools/nix | xargs rg "strictDeps" --files-without-match | xargs rg "buildRust|buildGo|buildPyt|buildNim" --files-without-match | xargs vim -p` checked with Artturin/diffing
30 lines
904 B
Nix
30 lines
904 B
Nix
{ stdenv, lib, fetchFromGitHub, makeWrapper, coreutils, jq, findutils, nix, bash }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nixos-generators";
|
|
version = "1.7.0";
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "nixos-generators";
|
|
rev = version;
|
|
sha256 = "sha256-WecDwDY/hEcDQYzFnccCNa+5Umht0lfjx/d1qGDy/rQ=";
|
|
};
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ bash ];
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
postFixup = ''
|
|
wrapProgram $out/bin/nixos-generate \
|
|
--prefix PATH : ${lib.makeBinPath [ jq coreutils findutils nix ] }
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Collection of image builders";
|
|
homepage = "https://github.com/nix-community/nixos-generators";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lassulus ];
|
|
mainProgram = "nixos-generate";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|