{ 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 ]; }