about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/pentobi
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-01-26 23:38:55 +0000
committerAlyssa Ross <hi@alyssa.is>2020-01-26 23:38:55 +0000
commit02e12559a420f8c544b2facc4931904900a05518 (patch)
treeba39d8fa9e874b935d204e74accfed5caaccf0fa /nixpkgs/pkgs/games/pentobi
parent542f80867c380b0ac79250b6e5358dda8bc49e0d (diff)
parent3d085a399c436a41d875801619e8f976b8519196 (diff)
downloadnixlib-02e12559a420f8c544b2facc4931904900a05518.tar
nixlib-02e12559a420f8c544b2facc4931904900a05518.tar.gz
nixlib-02e12559a420f8c544b2facc4931904900a05518.tar.bz2
nixlib-02e12559a420f8c544b2facc4931904900a05518.tar.lz
nixlib-02e12559a420f8c544b2facc4931904900a05518.tar.xz
nixlib-02e12559a420f8c544b2facc4931904900a05518.tar.zst
nixlib-02e12559a420f8c544b2facc4931904900a05518.zip
Merge commit '3d085a399c436a41d875801619e8f976b8519196'
Diffstat (limited to 'nixpkgs/pkgs/games/pentobi')
-rw-r--r--nixpkgs/pkgs/games/pentobi/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/pentobi/default.nix b/nixpkgs/pkgs/games/pentobi/default.nix
new file mode 100644
index 000000000000..2dc196c33cc3
--- /dev/null
+++ b/nixpkgs/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;
+  };
+}