mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 14:11:21 +00:00
cgoban: use jdk17 instead of adoptopenjdk-bin
This commit is contained in:
parent
9cec369c46
commit
0979f40aeb
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user