2018-03-15 13:25:55 +01:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, gobjectIntrospection
|
2017-10-04 23:50:14 +02:00
|
|
|
, libxml2, upower, glib, wrapGAppsHook, vala, sqlite, libxslt
|
2018-02-25 03:23:58 +01:00
|
|
|
, gnome3, icu, libuuid, networkmanager, libsoup, json-glib }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-15 13:25:55 +01:00
|
|
|
let
|
|
|
|
pname = "tracker";
|
2018-06-30 02:23:25 +02:00
|
|
|
version = "2.0.4";
|
2018-03-15 13:25:55 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-15 13:25:55 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-06-30 02:23:25 +02:00
|
|
|
sha256 = "1mfc5lv820kr7ssi7hldn25gmshh65k19kh478qjsnb64sshsbyf";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-03-15 13:25:55 +01:00
|
|
|
nativeBuildInputs = [ vala pkgconfig intltool libxslt wrapGAppsHook gobjectIntrospection ];
|
2017-10-04 23:50:14 +02:00
|
|
|
# TODO: add libstemmer
|
|
|
|
buildInputs = [
|
2018-02-25 03:23:58 +01:00
|
|
|
glib libxml2 sqlite upower icu networkmanager libsoup libuuid json-glib
|
2017-10-04 23:50:14 +02:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-02-25 03:23:58 +01:00
|
|
|
# TODO: figure out wrapping unit tests, some of them fail on missing gsettings-desktop-schemas
|
2017-10-04 23:50:14 +02:00
|
|
|
configureFlags = [ "--disable-unit-tests" ];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-10-04 23:50:14 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs utils/g-ir-merge/g-ir-merge
|
2016-09-18 21:35:23 +02:00
|
|
|
'';
|
|
|
|
|
2018-03-15 13:25:55 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02: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;
|
|
|
|
};
|
|
|
|
}
|