diff options
author | Savanni D'Gerinel <savanni@luminescent-dreams.com> | 2021-07-23 05:36:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 11:36:28 +0200 |
commit | 1443590c5b46e98d75fbcce65b70e609fcfe2316 (patch) | |
tree | 9e3d1e9211da474574797aac76fd4073df581983 /pkgs/games/cgoban | |
parent | 9774aa4754765bbda9736eab9a497d4f3651adfe (diff) |
cgoban: init at 3.5.23 (#130285)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/games/cgoban')
-rw-r--r-- | pkgs/games/cgoban/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/games/cgoban/default.nix b/pkgs/games/cgoban/default.nix new file mode 100644 index 000000000000..162de112fb55 --- /dev/null +++ b/pkgs/games/cgoban/default.nix @@ -0,0 +1,38 @@ +{ lib +, stdenv +, writers +, adoptopenjdk-jre-bin +, fetchurl +, makeWrapper +}: +stdenv.mkDerivation rec { + pname = "cgoban"; + version = "3.5.23"; + + nativeBuildInputs = [ adoptopenjdk-jre-bin makeWrapper ]; + + src = fetchurl { + url = "https://web.archive.org/web/20210116034119/https://files.gokgs.com/javaBin/cgoban.jar"; + sha256 = "0srw1hqr9prgr9dagfbh2j6p9ivaj40kdpyhs6zjkg7lhnnrrrcv"; + }; + + dontConfigure = true; + dontUnpack = true; + dontBuild = true; + dontPatchELF = true; + + 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" + runHook postInstall + ''; + + meta = with lib; { + description = "Client for the KGS Go Server"; + homepage = "https://www.gokgs.com/"; + license = licenses.free; + maintainers = with maintainers; [ savannidgerinel ]; + platforms = adoptopenjdk-jre-bin.meta.platforms; + }; +} |