imnyang/nix-flakes
Watch
1
0
Fork
You've already forked nix-flakes
0
nix-flakes/modules/home/alcom.nix
2026-10-04 12:59:42 +09:00

29 lines
445 B
Nix

{ pkgs, ... }:
let
alcomFhs = pkgs.symlinkJoin {
name = "alcom-fhs";
paths = [
pkgs.alcom
];
postBuild = ''
rm -f "$out/bin/ALCOM"
cat > "$out/bin/ALCOM" <<'EOF'
#!${pkgs.runtimeShell}
exec ${pkgs.unityhub.fhsEnv}/bin/unityhub-fhs-env \
${pkgs.alcom}/bin/ALCOM "$@"
EOF
chmod +x "$out/bin/ALCOM"
'';
};
in
{
home.packages = [
pkgs.unityhub
alcomFhs
];
}