buildGraalvmNativeImage: default executable to pname

This commit is contained in:
Thiago Kenji Okada 2021-11-23 12:35:55 -03:00
parent 3100248dbb
commit d352856ea2
4 changed files with 3 additions and 9 deletions

View File

@ -2,7 +2,7 @@
{ name ? "${args.pname}-${args.version}"
# Final executable name
, executable
, executable ? args.pname
# JAR used as input for GraalVM derivation, defaults to src
, jar ? args.src
, dontUnpack ? (jar == args.src)

View File

@ -9,8 +9,6 @@ buildGraalvmNativeImage rec {
sha256 = "sha256-i0OeQPZfQPUeXC/Bs84I91IahBKK6W1mFix97s8/lVA=";
};
executable = "clj-kondo";
extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces"
"--verbose"

View File

@ -14,8 +14,6 @@ buildGraalvmNativeImage rec {
sha256 = "sha256-mOUiKEM5tYhtpBpm7KtslyPYFsJ+Wr+4ul6Zi4aS09Q=";
};
executable = "jet";
extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces"
"-J-Dclojure.spec.skip-macros=true"

View File

@ -16,8 +16,6 @@ buildGraalvmNativeImage rec {
sha256 = "sha256-k0mzibcLAspklCPE6f2qsUm9bwSvcJRgWecMBq7mpF0=";
};
executable = "clojure-lsp";
# https://github.com/clojure-lsp/clojure-lsp/blob/2021.11.02-15.24.47/graalvm/native-unix-compile.sh#L18-L27
DTLV_LIB_EXTRACT_DIR = "/tmp";
@ -33,8 +31,8 @@ buildGraalvmNativeImage rec {
runHook preCheck
export HOME="$(mktemp -d)"
./${executable} --version | fgrep -q '${version}'
${babashka}/bin/bb integration-test ./${executable}
./${pname} --version | fgrep -q '${version}'
${babashka}/bin/bb integration-test ./${pname}
runHook postCheck
'';