1{
2 lib,
3 mkDerivation,
4 fetchFromGitHub,
5 qmake,
6 qtbase,
7 qtmultimedia,
8 qttools,
9}:
10
11mkDerivation {
12 pname = "qgo";
13 version = "unstable-2017-12-18";
14
15 meta = with lib; {
16 description = "Go client based on Qt5";
17 mainProgram = "qgo";
18 longDescription = ''
19 qGo is a Go Client based on Qt 5. It supports playing online at
20 IGS-compatible servers (including some special tweaks for WING and LGS,
21 also NNGS was reported to work) and locally against gnugo (or other
22 GTP-compliant engines). It also has rudimentary support for editing SGF
23 files and parital support for CyberORO/WBaduk, Tygem, Tom, and eWeiqi
24 (developers of these backends are currently inactive, everybody is welcome
25 to take them over).
26
27 Go is an ancient Chinese board game. It's called "圍棋(Wei Qi)" in
28 Chinese, "囲碁(Yi Go)" in Japanese, "바둑(Baduk)" in Korean.
29 '';
30 homepage = "https://github.com/pzorin/qgo";
31 license = licenses.gpl2Plus;
32 maintainers = with maintainers; [ zalakain ];
33 };
34
35 src = fetchFromGitHub {
36 owner = "pzorin";
37 repo = "qgo";
38 rev = "bef526dda4c79686edd95c88cc68de24f716703c";
39 sha256 = "1xzkayclmhsi07p9mnbf8185jw8n5ikxp2mik3x8qz1i6rmrfl5b";
40 };
41
42 patches = [ ./fix-paths.patch ];
43 postPatch = ''
44 sed -i 's|@out@|'"''${out}"'|g' src/src.pro src/defines.h
45 '';
46 nativeBuildInputs = [
47 qmake
48 qttools
49 ];
50 buildInputs = [
51 qtbase
52 qtmultimedia
53 ];
54}