pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / games / pentobi / default.nix
blob4974deca7e5ef45b77e69c51bfeda22305732680
1 { lib, mkDerivation, appstream, fetchFromGitHub, cmake, gettext, libxslt, librsvg, itstool
2 , qtbase, qtquickcontrols2, qtsvg, qttools, qtwebview, docbook_xsl
3 }:
5 mkDerivation rec {
6   version = "20.0";
7   pname = "pentobi";
9   src = fetchFromGitHub {
10     owner = "enz";
11     repo = "pentobi";
12     rev = "v${version}";
13     sha256 = "sha256-DQM3IJ0pRkX4OsrjZGROg50LfKb621UnpvtqSjxchz8=";
14   };
16   nativeBuildInputs = [ cmake docbook_xsl qttools ];
17   buildInputs = [ appstream qtbase qtsvg qtquickcontrols2 qtwebview itstool librsvg ];
19   patchPhase = ''
20     substituteInPlace pentobi_thumbnailer/CMakeLists.txt --replace "/manpages" "/share/xml/docbook-xsl/manpages/"
21     substituteInPlace pentobi/unix/CMakeLists.txt --replace "/manpages" "/share/xml/docbook-xsl/manpages/"
22     substituteInPlace pentobi/docbook/CMakeLists.txt --replace "/html" "/share/xml/docbook-xsl/html"
23   '';
25   cmakeFlags = [
26     "-DCMAKE_VERBOSE_MAKEFILE=1"
27     "-DDOCBOOKXSL_DIR=${docbook_xsl}"
28     "-DMETAINFO_ITS=${appstream}/share/gettext/its/metainfo.its"
29   ];
31   meta = with lib; {
32     description = "Computer opponent for the board game Blokus";
33     homepage = "https://pentobi.sourceforge.io";
34     license = licenses.gpl3Plus;
35     maintainers = [ ];
36     platforms = platforms.linux;
37   };