32 lines
580 B
Nix
32 lines
580 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
unstable,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
withExtraPackages =
|
|
pkg: extraPackages:
|
|
pkgs.runCommand "${pkg.name}-wrapped" { nativeBuildInputs = [ pkgs.makeWrapper ]; } ''
|
|
for exe in ${lib.getBin pkg}/bin/*; do
|
|
makeWrapper $exe $out/bin/$(basename $exe) --prefix PATH : ${lib.makeBinPath extraPackages}
|
|
done
|
|
'';
|
|
in
|
|
{
|
|
|
|
home.packages =
|
|
with unstable;
|
|
with inputs;
|
|
[
|
|
# === Factorio related ===
|
|
unstable.yafc-ce
|
|
unstable.pactorio
|
|
unstable.factoriolab
|
|
# === Factorio related ===
|
|
];
|
|
}
|
|
|