2017-10-04 22:50:14 +01:00
|
|
|
{ stdenv, intltool, fetchurl, libxml2, upower
|
|
|
|
, pkgconfig, gtk3, glib
|
|
|
|
, bash, wrapGAppsHook, itstool, vala, sqlite, libxslt
|
|
|
|
, gnome3, librsvg, gdk_pixbuf, libnotify
|
2018-02-25 02:23:58 +00:00
|
|
|
, evolution-data-server, gst_all_1, poppler
|
2017-10-04 22:50:14 +01:00
|
|
|
, icu, taglib, libjpeg, libtiff, giflib, libcue
|
|
|
|
, libvorbis, flac, exempi, networkmanager
|
|
|
|
, libpng, libexif, libgsf, libuuid, bzip2
|
2018-02-25 02:23:58 +00:00
|
|
|
, libsoup, json-glib, libseccomp
|
2017-10-04 22:50:14 +01:00
|
|
|
, libiptcdata }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "tracker-miners-${version}";
|
|
|
|
version = "2.0.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/tracker-miners/${gnome3.versionBranch version}/${name}.tar.xz";
|
|
|
|
sha256 = "12413a9f8dfa705a48a2697dcbb3eef12ee91bb98f392a23ba4bda7813e41d1b";
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "tracker-miners"; attrPath = "gnome3.tracker-miners"; };
|
|
|
|
};
|
2017-10-04 22:50:14 +01:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ vala pkgconfig intltool itstool libxslt wrapGAppsHook ];
|
|
|
|
# TODO: add libgrss, libenca
|
|
|
|
buildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
bzip2 evolution-data-server exempi flac giflib glib gnome3.totem-pl-parser
|
2017-10-04 22:50:14 +01:00
|
|
|
gnome3.tracker gst_all_1.gst-plugins-base gst_all_1.gstreamer icu
|
2018-02-25 02:23:58 +00:00
|
|
|
json-glib libcue libexif libgsf libiptcdata libjpeg libpng libseccomp libsoup
|
2017-10-04 22:50:14 +01:00
|
|
|
libtiff libuuid libvorbis libxml2 poppler taglib upower
|
|
|
|
];
|
|
|
|
|
|
|
|
LANG = "en_US.UTF-8"; # for running tests
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/libtracker-common/tracker-domain-ontology.c --replace \
|
|
|
|
'SHAREDIR, "tracker", "domain-ontologies"' \
|
|
|
|
'"${gnome3.tracker}/share", "tracker", "domain-ontologies"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|