postman: fix passing args in darwin app wrapper

Due to incorrect escaping, the wrapper script on Darwin currently bakes
in "installerPhase" rather than "$@". Postman doesn't really seem to do
anything with cli args as far as I can tell, but fixing this aligns it
better with other packages that also provide app wrappers on Darwin.
This commit is contained in:
Josh Heinrichs 2025-04-08 14:53:00 -06:00
parent 8cc0451ead
commit 7783213b3f
No known key found for this signature in database
GPG Key ID: 9E8561CAAC4A54E0

View File

@ -50,7 +50,7 @@ stdenvNoCC.mkDerivation {
cp -R . $out/Applications/${appName}
cat > $out/bin/${pname} << EOF
#!${stdenvNoCC.shell}
open -na $out/Applications/${appName} --args "$@"
open -na $out/Applications/${appName} --args "\$@"
EOF
chmod +x $out/bin/${pname}
runHook postInstall