summary refs log tree commit diff
path: root/pkgs/games/gogui
diff options
context:
space:
mode:
authormichael bishop <cleverca22@gmail.com>2016-11-20 10:07:33 -0400
committermichael bishop <cleverca22@gmail.com>2016-11-21 00:47:22 -0400
commit2e100a3e10e6bf6f7c829e6381fc06f32028e19e (patch)
tree08e512b50b05307cdfb73d46930e1ece3dd6e2eb /pkgs/games/gogui
parent1fec301ac57553f44ca3afff9798f49cec6a7793 (diff)
downloadnixpkgs-2e100a3e10e6bf6f7c829e6381fc06f32028e19e.tar
nixpkgs-2e100a3e10e6bf6f7c829e6381fc06f32028e19e.tar.gz
nixpkgs-2e100a3e10e6bf6f7c829e6381fc06f32028e19e.tar.bz2
nixpkgs-2e100a3e10e6bf6f7c829e6381fc06f32028e19e.tar.lz
nixpkgs-2e100a3e10e6bf6f7c829e6381fc06f32028e19e.tar.xz
nixpkgs-2e100a3e10e6bf6f7c829e6381fc06f32028e19e.tar.zst
nixpkgs-2e100a3e10e6bf6f7c829e6381fc06f32028e19e.zip
gogui: init at 1.4.9
Diffstat (limited to 'pkgs/games/gogui')
-rw-r--r--pkgs/games/gogui/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/games/gogui/default.nix b/pkgs/games/gogui/default.nix
new file mode 100644
index 00000000000..e89d16b788a
--- /dev/null
+++ b/pkgs/games/gogui/default.nix
@@ -0,0 +1,28 @@
+{ fetchurl, stdenv, openjdk, unzip, makeWrapper }:
+
+let
+  version = "1.4.9";
+in stdenv.mkDerivation {
+  name = "gogui-${version}";
+  buildInputs = [ unzip makeWrapper ];
+  src = fetchurl {
+    url = "mirror://sourceforge/project/gogui/gogui/${version}/gogui-${version}.zip";
+    sha256 = "0qk6p1bhi1816n638bg11ljyj6zxvm75jdf02aabzdmmd9slns1j";
+  };
+  dontConfigure = true;
+  installPhase = ''
+    mkdir -p $out/share/doc
+    mv -vi {bin,lib} $out/
+    mv -vi doc $out/share/doc/gogui
+    for x in $out/bin/*; do
+      wrapProgram $x --prefix PATH ":" ${openjdk}/bin
+    done
+  '';
+  meta = {
+    maintainers = [ stdenv.lib.maintainers.cleverca22 ];
+    description = "A graphical user interface to programs that play the board game Go and support the Go Text Protocol such as GNU Go";
+    homepage = http://gogui.sourceforge.net/;
+    platforms = stdenv.lib.platforms.unix;
+    license = stdenv.lib.licenses.gpl3;
+  };
+}