2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchurl, intltool, 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-03-03 18:08:17 +00:00
|
|
|
, gnome3, icu, libuuid, networkmanager, libsoup, json-glib
|
|
|
|
, substituteAll}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-15 12:25:55 +00:00
|
|
|
let
|
|
|
|
pname = "tracker";
|
2019-05-04 03:08:32 +01:00
|
|
|
version = "2.2.2";
|
2018-03-15 12:25:55 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
2018-08-17 12:19:13 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-05-04 03:08:32 +01:00
|
|
|
sha256 = "1rp2c6k7ajcm553p9kpni87zgi9aplm3s01rl7pk575az5i399y6";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-08-17 12:19:13 +01:00
|
|
|
nativeBuildInputs = [
|
2018-12-02 11:41:15 +00:00
|
|
|
meson ninja vala pkgconfig intltool 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
|
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 = [
|
2018-08-17 12:19:13 +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
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
mesonFlags = [
|
2019-09-03 17:38:57 +01:00
|
|
|
"-Ddbus_services=${placeholder "out"}/share/dbus-1/services"
|
|
|
|
"-Dsystemd_user_services=${placeholder "out"}/lib/systemd/user"
|
2018-08-17 12:19:13 +01:00
|
|
|
# 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;
|
|
|
|
attrPath = "gnome3.${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; {
|
|
|
|
homepage = https://wiki.gnome.org/Projects/Tracker;
|
|
|
|
description = "Desktop-neutral user information store, search tool and indexer";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|