From e09b963272f5ba0abccd4a9c25ad0c07b5a4b2c9 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 1 Jun 2023 00:46:03 +0000 Subject: [PATCH] =?UTF-8?q?gnome.gnome-mahjongg:=203.38.3=20=E2=86=92=203.?= =?UTF-8?q?40.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-mahjongg/-/compare/3.38.3...3.40.0 Ported to GTK4 and libadwaita. --- .../gnome/games/gnome-mahjongg/default.nix | 26 ++++++------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/pkgs/desktops/gnome/games/gnome-mahjongg/default.nix b/pkgs/desktops/gnome/games/gnome-mahjongg/default.nix index e2d7d0729c6c..4ca1a535f186 100644 --- a/pkgs/desktops/gnome/games/gnome-mahjongg/default.nix +++ b/pkgs/desktops/gnome/games/gnome-mahjongg/default.nix @@ -1,11 +1,11 @@ { stdenv , lib , fetchurl -, fetchpatch , pkg-config , gnome -, gtk3 -, wrapGAppsHook +, gtk4 +, wrapGAppsHook4 +, libadwaita , librsvg , gettext , itstool @@ -19,40 +19,30 @@ stdenv.mkDerivation rec { pname = "gnome-mahjongg"; - version = "3.38.3"; + version = "3.40.0"; src = fetchurl { url = "mirror://gnome/sources/gnome-mahjongg/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "144ia3zn9rhwa1xbdkvsz6m0dsysl6mxvqw9bnrlh845hmyy9cfj"; + sha256 = "WorIbXY8VmDdkCX3vAgxC5IjRvp+Lfe2SMmJTa4/GD8="; }; - patches = [ - # Fix build with meson 0.61 - # data/meson.build:24:0: ERROR: Function does not take positional arguments. - # data/meson.build:45:0: ERROR: Function does not take positional arguments. - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/gnome-mahjongg/-/commit/a2037b0747163601a5d5b57856d037eecf3a4db7.patch"; - sha256 = "Wcder6Y9H6c1f8I+IPDvST3umaCU21HgxfXn809JDz0="; - }) - ]; - nativeBuildInputs = [ meson ninja vala desktop-file-utils pkg-config - gnome.adwaita-icon-theme libxml2 itstool gettext - wrapGAppsHook + wrapGAppsHook4 glib # for glib-compile-schemas ]; buildInputs = [ glib - gtk3 + gtk4 + libadwaita librsvg ];