2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, gnome
|
2023-07-15 17:15:38 +00:00
|
|
|
, gtk4
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, libadwaita
|
2022-03-30 09:31:56 +00:00
|
|
|
, librsvg
|
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
|
|
|
, vala
|
|
|
|
, desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-mahjongg";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.40.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-mahjongg/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "WorIbXY8VmDdkCX3vAgxC5IjRvp+Lfe2SMmJTa4/GD8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
|
|
|
desktop-file-utils
|
|
|
|
pkg-config
|
|
|
|
libxml2
|
|
|
|
itstool
|
|
|
|
gettext
|
2023-07-15 17:15:38 +00:00
|
|
|
wrapGAppsHook4
|
2020-11-12 09:05:59 +00:00
|
|
|
glib # for glib-compile-schemas
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
glib
|
2023-07-15 17:15:38 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2020-11-12 09:05:59 +00:00
|
|
|
librsvg
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-11-12 09:05:59 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2020-11-12 09:05:59 +00:00
|
|
|
};
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Mahjongg";
|
|
|
|
description = "Disassemble a pile of tiles by removing matching pairs";
|
|
|
|
maintainers = teams.gnome.members;
|
2020-11-12 09:05:59 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-12-17 10:02:37 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|