clojure-lsp: fix compilation on darwin

This commit is contained in:
Bastien Riviere 2021-06-23 12:24:20 +02:00
parent a6bb32aecc
commit e234811bb0
No known key found for this signature in database
GPG key ID: F202AD3B6EDF4BD1
2 changed files with 16 additions and 1 deletions

View file

@ -18,6 +18,9 @@ stdenv.mkDerivation rec {
GRAALVM_HOME = graalvm11-ce;
CLOJURE_LSP_JAR = jar;
CLOJURE_LSP_XMX = "-J-Xmx4g";
patches = lib.optionals stdenv.isDarwin [ ./disable-check-toolchain.patch ];
buildInputs = [ graalvm11-ce ];
@ -52,7 +55,7 @@ stdenv.mkDerivation rec {
description = "Language Server Protocol (LSP) for Clojure";
homepage = "https://github.com/clojure-lsp/clojure-lsp";
license = licenses.mit;
maintainers = [ maintainers.ericdallo ];
maintainers = [ maintainers.ericdallo maintainers.babariviere ];
platforms = graalvm11-ce.meta.platforms;
};
}

View file

@ -0,0 +1,12 @@
diff --git a/graalvm/native-unix-compile.sh b/graalvm/native-unix-compile.sh
index ec0e49f..e19a120 100755
--- a/graalvm/native-unix-compile.sh
+++ b/graalvm/native-unix-compile.sh
@@ -17,6 +17,7 @@ CLOJURE_LSP_XMX=${CLOJURE_LSP_XMX:-"-J-Xmx4g"}
args=("-jar" "$CLOJURE_LSP_JAR"
"-H:+ReportExceptionStackTraces"
+ "-H:-CheckToolchain"
"--verbose"
"--no-fallback"
"--native-image-info"