gnome.gnome-mahjongg: 3.38.3 → 3.40.0

https://gitlab.gnome.org/GNOME/gnome-mahjongg/-/compare/3.38.3...3.40.0

Ported to GTK4 and libadwaita.
This commit is contained in:
Bobby Rong 2023-06-01 00:46:03 +00:00
parent 2857498c40
commit e09b963272
No known key found for this signature in database

View file

@ -1,11 +1,11 @@
{ stdenv { stdenv
, lib , lib
, fetchurl , fetchurl
, fetchpatch
, pkg-config , pkg-config
, gnome , gnome
, gtk3 , gtk4
, wrapGAppsHook , wrapGAppsHook4
, libadwaita
, librsvg , librsvg
, gettext , gettext
, itstool , itstool
@ -19,40 +19,30 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gnome-mahjongg"; pname = "gnome-mahjongg";
version = "3.38.3"; version = "3.40.0";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gnome-mahjongg/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 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 = [ nativeBuildInputs = [
meson meson
ninja ninja
vala vala
desktop-file-utils desktop-file-utils
pkg-config pkg-config
gnome.adwaita-icon-theme
libxml2 libxml2
itstool itstool
gettext gettext
wrapGAppsHook wrapGAppsHook4
glib # for glib-compile-schemas glib # for glib-compile-schemas
]; ];
buildInputs = [ buildInputs = [
glib glib
gtk3 gtk4
libadwaita
librsvg librsvg
]; ];