From aa2241f8576ce755f9375e2a4b14424443af7ab2 Mon Sep 17 00:00:00 2001 From: Bignaux Ronan Date: Sun, 15 Dec 2019 01:35:19 +0100 Subject: [PATCH] pentobi: init at 17.3 --- pkgs/games/pentobi/default.nix | 38 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/games/pentobi/default.nix diff --git a/pkgs/games/pentobi/default.nix b/pkgs/games/pentobi/default.nix new file mode 100644 index 000000000000..2dc196c33cc3 --- /dev/null +++ b/pkgs/games/pentobi/default.nix @@ -0,0 +1,38 @@ +{ stdenv, appstream, fetchurl, cmake, gettext, libxslt, librsvg, itstool + , qtbase, qtquickcontrols2, qtsvg, qttools, qtwebview, docbook_xsl + , wrapQtAppsHook +}: + +with stdenv.lib; +stdenv.mkDerivation rec { + version = "17.3"; + pname = "pentobi"; + + src = fetchurl { + url = "mirror://sourceforge/pentobi/${pname}-${version}.tar.xz"; + sha256 = "00c495i4vrji9hs7v8xr9gm8yqs97bfk2wzsayhps11hmbqzllx9"; + }; + + nativeBuildInputs = [ cmake docbook_xsl wrapQtAppsHook ]; + buildInputs = [ appstream qtbase qtsvg qtquickcontrols2 qttools qtwebview itstool librsvg ]; + + patchPhase = '' + substituteInPlace pentobi_thumbnailer/CMakeLists.txt --replace "/manpages" "/share/xml/docbook-xsl/manpages/" + substituteInPlace pentobi/unix/CMakeLists.txt --replace "/manpages" "/share/xml/docbook-xsl/manpages/" + substituteInPlace pentobi/docbook/CMakeLists.txt --replace "/html" "/share/xml/docbook-xsl/html" + ''; + + cmakeFlags = [ + "-DCMAKE_VERBOSE_MAKEFILE=1" + "-DDOCBOOKXSL_DIR=${docbook_xsl}" + "-DMETAINFO_ITS=${appstream}/share/gettext/its/metainfo.its" + ]; + + meta = { + description = "A computer opponent for the board game Blokus"; + homepage = https://pentobi.sourceforge.io; + license = licenses.gpl3; + maintainers = [ maintainers.genesis ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bc018e048a7f..eef90aa75b7a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23248,6 +23248,8 @@ in pacvim = callPackage ../games/pacvim { }; + pentobi = libsForQt5.callPackage ../games/pentobi { }; + performous = callPackage ../games/performous { boost = boost166; };