Skip to content

Commit

Permalink
chore: use jdk21-headless for sjsonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Apr 26, 2024
1 parent e720fc5 commit a42ba54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nix/sjsonnet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
{
stdenv,
fetchurl,
jdk20,
jdk21_headless,
makeWrapper,
java ? jdk21_headless,
}:
stdenv.mkDerivation rec {
pname = "sjsonnet";
Expand All @@ -18,12 +19,12 @@ stdenv.mkDerivation rec {
};

unpackPhase = "true";
buildInputs = [jdk20 makeWrapper];
buildInputs = [java makeWrapper];

installPhase = ''
mkdir -p $out/bin $out/lib
cp $src $out/lib/sjsonnet.jar
makeWrapper ${jdk20}/bin/java $out/bin/sjsonnet --add-flags "-Xss100m -XX:+UseStringDeduplication -jar $out/lib/sjsonnet.jar"
makeWrapper ${java}/bin/java $out/bin/sjsonnet --add-flags "-Xss100m -XX:+UseStringDeduplication -jar $out/lib/sjsonnet.jar"
'';
separateDebugInfo = false;
}

0 comments on commit a42ba54

Please sign in to comment.