blob: 5b453b728d4c140a5cd2337f2f0d9953f7d1a159 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ lib
, stdenv
, writers
, temurin-jre-bin-17
, fetchurl
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "cgoban";
version = "3.5.144";
nativeBuildInputs = [ temurin-jre-bin-17 makeWrapper ];
src = fetchurl {
url = "https://web.archive.org/web/20240314222506/https://files.gokgs.com/javaBin/cgoban.jar";
hash = "sha256-ehN/aQU23ZEtDh/+r3H2PDPBrWhgoMfgEfKq5q08kFY=";
};
dontConfigure = true;
dontUnpack = true;
dontBuild = true;
dontPatchELF = true;
installPhase = ''
runHook preInstall
install -D $src $out/lib/cgoban.jar
makeWrapper ${temurin-jre-bin-17}/bin/java $out/bin/cgoban --add-flags "-jar $out/lib/cgoban.jar"
runHook postInstall
'';
meta = with lib; {
description = "Client for the KGS Go Server";
mainProgram = "cgoban";
homepage = "https://www.gokgs.com/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.free;
maintainers = with maintainers; [ savannidgerinel ];
platforms = temurin-jre-bin-17.meta.platforms;
};
}
|