2016-09-18 20:35:23 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook
|
2019-03-11 17:37:48 +00:00
|
|
|
, librsvg, gettext, itstool, libxml2
|
|
|
|
, meson, ninja, python3, vala, desktop-file-utils
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-mahjongg";
|
2020-03-08 10:57:26 +00:00
|
|
|
version = "3.36.1";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-mahjongg/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-03-08 10:57:26 +00:00
|
|
|
sha256 = "1a5h55amr0pab36y2iqm6ynv6mmb8al1b92rfk18wzfcfz7mhxzd";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "gnome-mahjongg"; attrPath = "gnome3.gnome-mahjongg"; };
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-11 17:37:48 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja vala python3 desktop-file-utils
|
|
|
|
pkgconfig gnome3.adwaita-icon-theme
|
|
|
|
libxml2 itstool gettext wrapGAppsHook
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
buildInputs = [
|
2019-03-11 17:37:48 +00:00
|
|
|
gtk3 librsvg
|
2016-09-18 20:35:23 +01:00
|
|
|
];
|
|
|
|
|
2019-03-11 17:37:48 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x data/meson_post_install.py
|
|
|
|
patchShebangs data/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Mahjongg";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Disassemble a pile of tiles by removing matching pairs";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|