2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gnome, gtk3, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, librsvg, gettext, itstool, libxml2
|
2020-11-12 09:05:59 +00:00
|
|
|
, meson, ninja, glib, vala, desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-mahjongg";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "3.38.3";
|
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";
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "144ia3zn9rhwa1xbdkvsz6m0dsysl6mxvqw9bnrlh845hmyy9cfj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
meson ninja vala desktop-file-utils
|
2021-05-20 23:08:51 +00:00
|
|
|
pkg-config gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
libxml2 itstool gettext wrapGAppsHook
|
2020-11-12 09:05:59 +00:00
|
|
|
glib # for glib-compile-schemas
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|