504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
19 lines
559 B
Nix
19 lines
559 B
Nix
{ stdenvNoCC, lib, src, version, makeWrapper, coreutils, findutils, gnugrep, systemd }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
name = "distrobuilder-nixos-generator";
|
|
|
|
inherit src version;
|
|
|
|
patches = [
|
|
./nixos-generator.patch
|
|
];
|
|
|
|
dontBuild = true;
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
install -D -m 0555 distrobuilder/lxc.generator $out/lib/systemd/system-generators/lxc
|
|
wrapProgram $out/lib/systemd/system-generators/lxc --prefix PATH : ${lib.makeBinPath [coreutils findutils gnugrep systemd]}:${systemd}/lib/systemd
|
|
'';
|
|
}
|