1 { stdenvNoCC, lib, src, version, makeWrapper, coreutils, findutils, gnugrep, systemd }:
3 stdenvNoCC.mkDerivation {
4 name = "distrobuilder-nixos-generator";
9 ./nixos-generator.patch
13 nativeBuildInputs = [ makeWrapper ];
16 install -D -m 0555 distrobuilder/lxc.generator $out/lib/systemd/system-generators/lxc
17 wrapProgram $out/lib/systemd/system-generators/lxc --prefix PATH : ${lib.makeBinPath [coreutils findutils gnugrep systemd]}:${systemd}/lib/systemd