aboutsummaryrefslogtreecommitdiff
path: root/pkgs/games/pentobi/default.nix
diff options
context:
space:
mode:
authorfreezeboy <freezeboy@users.noreply.github.com>2020-11-05 18:19:38 +0100
committerfreezeboy <freezeboy@users.noreply.github.com>2020-11-20 22:24:20 +0100
commit92904173001cf23d03e8f9ccd3d338bd2ada963a (patch)
tree324dd38ade283040c2c8e3b48f32f625290191c2 /pkgs/games/pentobi/default.nix
parent8e375d71f03c0ab1f622d2f38b4ea406be86de89 (diff)
pentobi: 18.1 -> 18.3
* Rewrite without stdenv and wrapQtAppsHook * Fetch source from GithHub
Diffstat (limited to 'pkgs/games/pentobi/default.nix')
-rw-r--r--pkgs/games/pentobi/default.nix24
1 files changed, 12 insertions, 12 deletions
diff --git a/pkgs/games/pentobi/default.nix b/pkgs/games/pentobi/default.nix
index f0f6ccb8a129..b8a4935aa267 100644
--- a/pkgs/games/pentobi/default.nix
+++ b/pkgs/games/pentobi/default.nix
@@ -1,20 +1,20 @@
-{ stdenv, appstream, fetchurl, cmake, gettext, libxslt, librsvg, itstool
- , qtbase, qtquickcontrols2, qtsvg, qttools, qtwebview, docbook_xsl
- , wrapQtAppsHook
+{ lib, mkDerivation, appstream, fetchFromGitHub, cmake, gettext, libxslt, librsvg, itstool
+, qtbase, qtquickcontrols2, qtsvg, qttools, qtwebview, docbook_xsl
}:
-with stdenv.lib;
-stdenv.mkDerivation rec {
- version = "18.1";
+mkDerivation rec {
+ version = "18.3";
pname = "pentobi";
- src = fetchurl {
- url = "mirror://sourceforge/pentobi/${pname}-${version}.tar.xz";
- sha256 = "1vfw61lk9z7dngncmx3fggy5ld7ksdk48dpwnsq2vl5fh3f71qbq";
+ src = fetchFromGitHub {
+ owner = "enz";
+ repo = "pentobi";
+ rev = "v${version}";
+ sha256 = "9AymvAlXi0zkkcakTR0mC4gmyrweZR4EwlhORkmVshw=";
};
- nativeBuildInputs = [ cmake docbook_xsl wrapQtAppsHook ];
- buildInputs = [ appstream qtbase qtsvg qtquickcontrols2 qttools qtwebview itstool librsvg ];
+ nativeBuildInputs = [ cmake docbook_xsl qttools ];
+ buildInputs = [ appstream qtbase qtsvg qtquickcontrols2 qtwebview itstool librsvg ];
patchPhase = ''
substituteInPlace pentobi_thumbnailer/CMakeLists.txt --replace "/manpages" "/share/xml/docbook-xsl/manpages/"
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
"-DMETAINFO_ITS=${appstream}/share/gettext/its/metainfo.its"
];
- meta = {
+ meta = with lib; {
description = "A computer opponent for the board game Blokus";
homepage = "https://pentobi.sourceforge.io";
license = licenses.gpl3;