2018-01-11 10:11:10 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, qttranslations
|
|
|
|
}:
|
2017-06-25 11:29:18 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "qgo";
|
2018-01-11 10:11:10 +00:00
|
|
|
version = "unstable-2017-12-18";
|
2017-06-25 11:29:18 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Go client based on Qt5";
|
|
|
|
longDescription = ''
|
|
|
|
qGo is a Go Client based on Qt 5. It supports playing online at
|
|
|
|
IGS-compatible servers (including some special tweaks for WING and LGS,
|
|
|
|
also NNGS was reported to work) and locally against gnugo (or other
|
|
|
|
GTP-compliant engines). It also has rudimentary support for editing SGF
|
|
|
|
files and parital support for CyberORO/WBaduk, Tygem, Tom, and eWeiqi
|
|
|
|
(developers of these backends are currently inactive, everybody is welcome
|
|
|
|
to take them over).
|
|
|
|
|
|
|
|
Go is an ancient Chinese board game. It's called "圍棋(Wei Qi)" in
|
|
|
|
Chinese, "囲碁(Yi Go)" in Japanese, "바둑(Baduk)" in Korean.
|
|
|
|
'';
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/pzorin/qgo;
|
2017-06-25 11:29:18 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ zalakain ];
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pzorin";
|
|
|
|
repo = "qgo";
|
2018-01-11 10:11:10 +00:00
|
|
|
rev = "bef526dda4c79686edd95c88cc68de24f716703c";
|
2017-06-25 11:29:18 +01:00
|
|
|
sha256 = "1xzkayclmhsi07p9mnbf8185jw8n5ikxp2mik3x8qz1i6rmrfl5b";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-paths.patch ];
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's|@out@|'"''${out}"'|g' src/src.pro src/defines.h
|
|
|
|
'';
|
|
|
|
nativeBuildInputs = [ makeWrapper qmake ];
|
2018-01-11 10:11:10 +00:00
|
|
|
buildInputs = [ qtbase qtmultimedia qttranslations ];
|
2017-06-25 11:29:18 +01:00
|
|
|
enableParallelBuilding = true;
|
2018-01-11 10:11:10 +00:00
|
|
|
|
2017-06-25 11:29:18 +01:00
|
|
|
}
|