1 { lib, mkDerivation, fetchFromGitHub, fetchpatch, qmake, qtbase
2 , SDL, SDL_mixer, boost, curl, gsasl, libgcrypt, libircclient, protobuf, sqlite
4 , tinyxml2, target ? "client" }:
7 pname = "pokerth-${target}";
10 src = fetchFromGitHub {
14 hash = "sha256-j4E3VMpaPqX7+hE3wYRZZUeRD//F+K2Gp8oPmJqX5FQ=";
19 name = "pokerth-1.1.2.patch";
20 url = "https://aur.archlinux.org/cgit/aur.git/plain/pokerth-1.1.2.patch?h=pokerth&id=7734029cf9c6ef58f42ed873e1b9c3c19eb1df3b";
21 hash = "sha256-we2UOCFF5J/Wlji/rJeCHDu/dNsUU+R+bTw83AmvDxs=";
24 name = "pokerth-1.1.2.patch.2019";
25 url = "https://aur.archlinux.org/cgit/aur.git/plain/pokerth-1.1.2.patch.2019?h=pokerth&id=7734029cf9c6ef58f42ed873e1b9c3c19eb1df3b";
26 hash = "sha256-m6uFPmPC3T9kV7EI1p33vQSi0d/w+YCH0dKjviAphMY=";
29 name = "pokerth-1.1.2.patch.2020";
30 url = "https://aur.archlinux.org/cgit/aur.git/plain/pokerth-1.1.2.patch.2020?h=pokerth&id=7734029cf9c6ef58f42ed873e1b9c3c19eb1df3b";
31 hash = "sha256-I2qrgLGSMvFDHyUZFWGPGnuecZ914NBf2uGK02X/wOg=";
37 substituteInPlace $f \
38 --replace '$$'{PREFIX}/include/libircclient ${libircclient.dev}/include/libircclient \
39 --replace 'LIB_DIRS =' 'LIB_DIRS = ${boost.out}/lib' \
40 --replace /opt/gsasl ${gsasl}
44 nativeBuildInputs = [ qmake wrapQtAppsHook ];
65 env.NIX_CFLAGS_COMPILE = "-I${lib.getDev SDL}/include/SDL";
68 homepage = "https://www.pokerth.net";
69 description = "Poker game ${target}";
70 mainProgram = "pokerth";
71 license = licenses.gpl3;
72 maintainers = with maintainers; [ obadz ];
73 platforms = platforms.all;