babashka: fix build on darwin

This commit is contained in:
Bastien Riviere 2021-09-13 13:27:13 +02:00
parent 0f279e2e0c
commit 5255d4e168
No known key found for this signature in database
GPG key ID: F202AD3B6EDF4BD1

View file

@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
# https://github.com/babashka/babashka/blob/v0.6.0/script/compile#L41-L52
args=("-jar" "$BABASHKA_JAR"
# Required to build babashka on darwin. Do not remove.
"${lib.optionalString stdenv.isDarwin "-H:-CheckToolchain"}"
"-H:Name=$BABASHKA_BINARY"
"-H:+ReportExceptionStackTraces"
# "-H:+PrintAnalysisCallTree"