clojure-lsp: reduce closure size
Before: ``` $ nix path-info -S ./result -h /nix/store/z8802pkmg77wq10kz851fvrjib0pm75f-clojure-lsp-2021.09.30-15.28.01 2.0G ``` After: ``` $ nix path-info -S ./result -h /nix/store/1q6r7z9ga2hnar1gj5gbd6s0b3h5xhp8-clojure-lsp-2021.09.30-15.28.01 154.4M ```
This commit is contained in:
parent
bc40a84b55
commit
72971ccccb
|
@ -25,7 +25,18 @@ stdenv.mkDerivation rec {
|
|||
buildPhase = with lib; ''
|
||||
runHook preBuild
|
||||
|
||||
bash ./graalvm/native-unix-compile.sh
|
||||
# https://github.com/clojure-lsp/clojure-lsp/blob/2021.09.30-15.28.01/graalvm/native-unix-compile.sh#L19-L24
|
||||
args=("-jar" "$CLOJURE_LSP_JAR"
|
||||
"-H:CLibraryPath=${graalvm11-ce.lib}/lib"
|
||||
# Required to build babashka on darwin. Do not remove.
|
||||
"${lib.optionalString stdenv.isDarwin "-H:-CheckToolchain"}"
|
||||
"-H:+ReportExceptionStackTraces"
|
||||
"--verbose"
|
||||
"--no-fallback"
|
||||
"--native-image-info"
|
||||
"$CLOJURE_LSP_XMX")
|
||||
|
||||
native-image ''${args[@]}
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue