youtrack: use jdk21

This commit is contained in:
Leona Maroni 2024-06-15 10:11:19 +02:00
parent ced3787789
commit 4e5dda64e9
No known key found for this signature in database
GPG Key ID: D5B08ADFC75E3605

View File

@ -1,4 +1,4 @@
{ lib, stdenvNoCC, fetchzip, makeBinaryWrapper, jdk17_headless, gawk, statePath ? "/var/lib/youtrack" }:
{ lib, stdenvNoCC, fetchzip, makeBinaryWrapper, jdk21_headless, gawk, statePath ? "/var/lib/youtrack" }:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "youtrack";
@ -20,7 +20,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
cp -r * $out
makeWrapper $out/bin/youtrack.sh $out/bin/youtrack \
--prefix PATH : "${lib.makeBinPath [ gawk ]}" \
--set JRE_HOME ${jdk17_headless}
--set JRE_HOME ${jdk21_headless}
rm -rf $out/internal/java
mv $out/conf $out/conf.orig
ln -s ${statePath}/backups $out/backups