iterm2: fix passing args on the cli

If I try to run iterm2 on the cli, I get prompted to approve running
"installerPhase". We appear to be accidentally baking this into the
wrapper script rather than "$@" due to improper escaping.
This commit is contained in:
Josh Heinrichs 2025-04-08 14:37:28 -06:00
parent 8cc0451ead
commit 1b1672bc9d
No known key found for this signature in database
GPG Key ID: 9E8561CAAC4A54E0

View File

@ -34,7 +34,7 @@ stdenvNoCC.mkDerivation rec {
mkdir -p "$out/bin"
cat << EOF > "$out/bin/iterm2"
#!${stdenvNoCC.shell}
open -na "$APP_DIR" --args "$@"
open -na "$APP_DIR" --args "\$@"
EOF
chmod +x "$out/bin/iterm2"
runHook postInstall