2021-01-17 03:21:50 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, meson, ninja, pkg-config, desktop-file-utils, appstream-glib, libxslt
|
2017-10-04 23:50:14 +02:00
|
|
|
, libxml2, gettext, itstool, wrapGAppsHook, docbook_xsl, docbook_xml_dtd_43
|
2019-04-17 02:38:26 +02:00
|
|
|
, gnome3, gtk3, glib, gsettings-desktop-schemas }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gnome-dictionary";
|
2018-02-25 21:07:20 +01:00
|
|
|
version = "3.26.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-dictionary/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-02-25 21:07:20 +01:00
|
|
|
sha256 = "16b8bc248dcf68987826d5e39234b1bb7fd24a2607fcdbf4258fde88f012f300";
|
|
|
|
};
|
|
|
|
|
2020-02-06 20:01:59 +01:00
|
|
|
patches = [
|
|
|
|
# fix AppStream validation
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-dictionary/commit/1c94d612030ef87c6e26a01a490470b71c39e341.patch";
|
2020-06-01 10:59:41 +02:00
|
|
|
sha256 = "0cbswmhs9mks3gsc0iy4wnidsa8sfzzf4s1kgvb80qwffgxz5m8b";
|
2020-02-06 20:01:59 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2018-03-22 19:55:12 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:21:50 +01:00
|
|
|
meson ninja pkg-config wrapGAppsHook libxml2 gettext itstool
|
2018-03-22 19:55:12 +01:00
|
|
|
desktop-file-utils appstream-glib libxslt docbook_xsl docbook_xml_dtd_43
|
|
|
|
];
|
2019-04-17 02:38:26 +02:00
|
|
|
buildInputs = [ gtk3 glib gsettings-desktop-schemas gnome3.adwaita-icon-theme ];
|
2017-10-04 23:50:14 +02:00
|
|
|
|
2018-03-22 19:55:12 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-dictionary";
|
|
|
|
attrPath = "gnome3.gnome-dictionary";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Dictionary";
|
2016-09-18 21:35:23 +02:00
|
|
|
description = "Dictionary is the GNOME application to look up definitions";
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|