2018-08-17 12:19:13 +01:00
|
|
|
{ stdenv, fetchurl, intltool, meson, ninja, pkgconfig, gobjectIntrospection, python2
|
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_412, docbook_xml_dtd_43, glibcLocales
|
|
|
|
, libxml2, upower, glib, wrapGAppsHook, vala, sqlite, libxslt, libstemmer
|
2018-02-25 02:23:58 +00:00
|
|
|
, gnome3, icu, libuuid, networkmanager, libsoup, json-glib }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-15 12:25:55 +00:00
|
|
|
let
|
|
|
|
pname = "tracker";
|
2018-08-17 12:19:13 +01:00
|
|
|
version = "2.1.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-03-15 12:25:55 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-08-17 12:19:13 +01:00
|
|
|
sha256 = "1sf923f3ya3gj5s90da8qkqqvjj3fdll7xrjgscpb6yhgv0kzqsi";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-08-17 12:19:13 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja vala pkgconfig intltool libxslt wrapGAppsHook gobjectIntrospection
|
|
|
|
gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_43 glibcLocales
|
|
|
|
python2 # for data-generators
|
|
|
|
];
|
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 = [
|
|
|
|
"-Ddbus_services=share/dbus-1/services"
|
|
|
|
# TODO: figure out wrapping unit tests, some of them fail on missing gsettings-desktop-schemas
|
|
|
|
"-Dfunctional_tests=false"
|
|
|
|
];
|
2016-09-18 20:35:23 +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 = ''
|
|
|
|
${glib.dev}/bin/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;
|
|
|
|
};
|
|
|
|
}
|