2021-01-15 04:31:39 +00:00
|
|
|
{ fetchurl, lib, stdenv, openjdk, unzip, makeWrapper }:
|
2016-11-20 14:07:33 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.4.9";
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "gogui";
|
|
|
|
inherit version;
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ unzip ];
|
2016-11-20 14:07:33 +00:00
|
|
|
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 = {
|
2021-01-15 04:31:39 +00:00
|
|
|
maintainers = [ lib.maintainers.cleverca22 ];
|
2016-11-20 14:07:33 +00:00
|
|
|
description = "A graphical user interface to programs that play the board game Go and support the Go Text Protocol such as GNU Go";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://gogui.sourceforge.net/";
|
2021-01-15 04:31:39 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl3;
|
2016-11-20 14:07:33 +00:00
|
|
|
};
|
|
|
|
}
|