nixpkgs/pkgs/games/qgo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.4 KiB
Nix
Raw Normal View History

2020-02-24 21:11:50 +00:00
{ lib
, mkDerivation
, fetchFromGitHub
, qmake
, qtbase
, qtmultimedia
, qttools
}:
2017-06-25 10:29:18 +00:00
2020-02-24 21:11:50 +00:00
mkDerivation {
pname = "qgo";
version = "unstable-2017-12-18";
2017-06-25 10:29:18 +00:00
2020-02-24 21:11:50 +00:00
meta = with lib; {
2017-06-25 10:29:18 +00:00
description = "Go client based on Qt5";
mainProgram = "qgo";
2017-06-25 10:29:18 +00:00
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.
'';
homepage = "https://github.com/pzorin/qgo";
2024-07-03 09:37:36 +00:00
license = licenses.gpl2Plus;
2017-06-25 10:29:18 +00:00
maintainers = with maintainers; [ zalakain ];
};
src = fetchFromGitHub {
owner = "pzorin";
repo = "qgo";
rev = "bef526dda4c79686edd95c88cc68de24f716703c";
2017-06-25 10:29:18 +00:00
sha256 = "1xzkayclmhsi07p9mnbf8185jw8n5ikxp2mik3x8qz1i6rmrfl5b";
};
patches = [ ./fix-paths.patch ];
postPatch = ''
sed -i 's|@out@|'"''${out}"'|g' src/src.pro src/defines.h
'';
nativeBuildInputs = [ qmake qttools ];
buildInputs = [ qtbase qtmultimedia ];
2017-06-25 10:29:18 +00:00
}