cgoban: use jdk17 instead of adoptopenjdk-bin

This commit is contained in:
Infinidoge 2024-05-09 20:16:19 -04:00
parent 9cec369c46
commit 0979f40aeb
No known key found for this signature in database

View File

@ -1,7 +1,7 @@
{ lib
, stdenv
, writers
, adoptopenjdk-jre-bin
, temurin-jre-bin-17
, fetchurl
, makeWrapper
}:
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
pname = "cgoban";
version = "3.5.144";
nativeBuildInputs = [ adoptopenjdk-jre-bin makeWrapper ];
nativeBuildInputs = [ temurin-jre-bin-17 makeWrapper ];
src = fetchurl {
url = "https://web.archive.org/web/20240314222506/https://files.gokgs.com/javaBin/cgoban.jar";
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
install -D $src $out/lib/cgoban.jar
makeWrapper ${adoptopenjdk-jre-bin}/bin/java $out/bin/cgoban --add-flags "-jar $out/lib/cgoban.jar"
makeWrapper ${temurin-jre-bin-17}/bin/java $out/bin/cgoban --add-flags "-jar $out/lib/cgoban.jar"
runHook postInstall
'';
@ -35,6 +35,6 @@ stdenv.mkDerivation rec {
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.free;
maintainers = with maintainers; [ savannidgerinel ];
platforms = adoptopenjdk-jre-bin.meta.platforms;
platforms = temurin-jre-bin-17.meta.platforms;
};
}