2019-09-02 17:46:04 +01:00
|
|
|
{ stdenv, fetchurl, gettext, meson, ninja, pkgconfig, gobject-introspection, python3
|
2018-08-17 12:19:13 +01:00
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_412, docbook_xml_dtd_43, glibcLocales
|
|
|
|
, libxml2, upower, glib, wrapGAppsHook, vala, sqlite, libxslt, libstemmer
|
2019-10-13 12:13:20 +01:00
|
|
|
, gnome3, icu, libuuid, networkmanager, libsoup, json-glib, systemd, dbus
|
2019-09-02 17:46:04 +01:00
|
|
|
, substituteAll }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-09-02 17:46:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-15 12:25:55 +00:00
|
|
|
pname = "tracker";
|
2020-03-20 01:16:49 +00:00
|
|
|
version = "2.3.4";
|
2018-03-15 12:25:55 +00:00
|
|
|
|
2018-08-17 12:19:13 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-02 17:46:04 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-03-20 01:16:49 +00:00
|
|
|
sha256 = "V3lSJEq5d8eLC4ji9jxBl+q6FuTWa/9pK39YmT4GUW0=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-08-17 12:19:13 +01:00
|
|
|
nativeBuildInputs = [
|
2019-09-02 17:46:04 +01:00
|
|
|
meson ninja vala pkgconfig gettext libxslt wrapGAppsHook gobject-introspection
|
2018-08-17 12:19:13 +01:00
|
|
|
gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_43 glibcLocales
|
2019-03-03 18:08:17 +00:00
|
|
|
python3 # for data-generators
|
2019-09-02 17:46:04 +01:00
|
|
|
systemd # used for checks to install systemd user service
|
2019-10-13 19:01:48 +01:00
|
|
|
dbus # used for checks and pkgconfig to install dbus service/s
|
2018-08-17 12:19:13 +01:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
buildInputs = [
|
2019-10-13 19:01:48 +01:00
|
|
|
glib libxml2 sqlite upower icu networkmanager libsoup libuuid json-glib libstemmer
|
2017-10-04 22:50:14 +01:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-08-17 12:19:13 +01:00
|
|
|
mesonFlags = [
|
|
|
|
# TODO: figure out wrapping unit tests, some of them fail on missing gsettings-desktop-schemas
|
|
|
|
"-Dfunctional_tests=false"
|
2019-03-03 18:08:17 +00:00
|
|
|
"-Ddocs=true"
|
2018-08-17 12:19:13 +01:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-09-28 20:58:26 +01:00
|
|
|
patches = [
|
2019-03-03 18:08:17 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
2019-04-15 19:57:48 +01:00
|
|
|
gdbus = "${glib.bin}/bin/gdbus";
|
2018-09-28 20:58:26 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs utils/g-ir-merge/g-ir-merge
|
2018-08-17 12:19:13 +01:00
|
|
|
patchShebangs utils/data-generators/cc/generate
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2018-08-30 18:45:19 +01:00
|
|
|
glib-compile-schemas "$out/share/glib-2.0/schemas"
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
2018-03-15 12:25:55 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
2018-08-17 12:19:13 +01:00
|
|
|
versionPolicy = "none";
|
2018-03-15 12:25:55 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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/Projects/Tracker";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Desktop-neutral user information store, search tool and indexer";
|
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;
|
|
|
|
};
|
|
|
|
}
|