1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

Merge pull request #321645 from Uthar/abcl-cffi-fix

abcl: fix visibility of CLASSPATH
This commit is contained in:
7c6f434c 2024-06-25 14:58:45 +00:00 committed by GitHub
commit 191a3fd978
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 11 deletions

View file

@ -4,7 +4,6 @@
, fetchurl
, ant
, jdk
, jre
, makeWrapper
, stripJavaArchivesHook
}:
@ -36,7 +35,9 @@ stdenv.mkDerivation (finalAttrs: {
buildPhase = ''
runHook preBuild
ant
ant \
-Dabcl.runtime.jar.path="$out/lib/abcl/abcl.jar" \
-Dadditional.jars="$out/lib/abcl/abcl-contrib.jar"
runHook postBuild
'';
@ -47,14 +48,7 @@ stdenv.mkDerivation (finalAttrs: {
mkdir -p "$out"/{share/doc/abcl,lib/abcl}
cp -r README COPYING CHANGES examples/ "$out/share/doc/abcl/"
cp -r dist/*.jar contrib/ "$out/lib/abcl/"
makeWrapper ${jre}/bin/java $out/bin/abcl \
--add-flags "-classpath $out/lib/abcl/\*" \
${lib.optionalString (lib.versionAtLeast jre.version "17")
# Fix for https://github.com/armedbear/abcl/issues/484
"--add-flags --add-opens=java.base/java.util.jar=ALL-UNNAMED \\"
}
--add-flags org.armedbear.lisp.Main
install -Dm555 abcl -t $out/bin
runHook postInstall
'';

View file

@ -25093,7 +25093,11 @@ with pkgs;
# Armed Bear Common Lisp
abcl = wrapLisp {
pkg = callPackage ../development/compilers/abcl { };
pkg = callPackage ../development/compilers/abcl {
# https://armedbear.common-lisp.dev/ lists OpenJDK 17 as the highest
# supported JDK.
jdk = openjdk17;
};
faslExt = "abcl";
};