depot/third_party/nixpkgs/pkgs/games/gogui/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

30 lines
943 B
Nix

{ fetchurl, lib, stdenv, openjdk, unzip, makeWrapper }:
let
version = "1.4.9";
in stdenv.mkDerivation {
pname = "gogui";
inherit version;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ unzip ];
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 = [ 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 = lib.platforms.unix;
license = lib.licenses.gpl3;
};
}