New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix shell in ammonite package #68151 #73905
Conversation
Have you considered using |
Good question. Upstream recommends [1] @ 2>/dev/null # 2>nul & echo off & goto BOF
:
exec /nix/store/qdb4a4qww23a6cb408qi5r7ypmk1c6dp-openjdk-8u222-ga-jre/bin/java -Xmx500m -XX:+UseG1GC $JAVA_OPTS -cp "$0" ammonite.Main --no-remote-logging "$@"
exit
:BOF
@echo off
java -Xmx500m -XX:+UseG1GC %JAVA_OPTS% -cp "%~dpnx0" ammonite.Main %*
exit /B %errorlevel%
PK
... rest of the jar |
I ticked "Tested using sandboxing" because I realised it was on the whole time.
Package closure size:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
I've tested this on macOS. Seems to work.
|
Motivation for this change
The amm command doesn't work when started from the fish shell because it lacks a shebang.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
No diff detected./result/bin/
)nix path-info -S
before and after) +8 bytesNotify maintainers
cc @NeQuissimus