2018-05-15 18:55:40 +01:00
|
|
|
{ stdenv, fetchurl, substituteAll, intltool, itstool, libxslt, makeWrapper
|
|
|
|
, meson, ninja, pkgconfig, vala, wrapGAppsHook, bzip2, dbus, evolution-data-server
|
|
|
|
, exempi, flac, giflib, glib, gnome3, gst_all_1, icu, json-glib, libcue, libexif
|
|
|
|
, libgsf, libiptcdata, libjpeg, libpng, libseccomp, libsoup, libtiff, libuuid
|
|
|
|
, libvorbis, libxml2, poppler, taglib, upower }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-03-21 06:45:31 +00:00
|
|
|
pname = "tracker-miners";
|
2018-06-30 01:31:10 +01:00
|
|
|
version = "2.0.5";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-21 06:45:31 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-06-30 01:31:10 +01:00
|
|
|
sha256 = "00k8nb8dbkjnqjk12gcs5n2cm6yny553qildsm5b2c8nfs1w16b4";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-05-15 18:55:40 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
libxslt
|
|
|
|
makeWrapper
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2017-10-04 22:50:14 +01:00
|
|
|
|
2018-03-21 06:45:31 +00:00
|
|
|
# TODO: add libgrss, libenca, libosinfo
|
2017-10-04 22:50:14 +01:00
|
|
|
buildInputs = [
|
2018-05-15 18:55:40 +01:00
|
|
|
bzip2
|
|
|
|
dbus
|
|
|
|
evolution-data-server
|
|
|
|
exempi
|
|
|
|
flac
|
|
|
|
giflib
|
|
|
|
glib
|
|
|
|
gnome3.gexiv2
|
|
|
|
gnome3.totem-pl-parser
|
|
|
|
gnome3.tracker
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
icu
|
|
|
|
json-glib
|
|
|
|
libcue
|
|
|
|
libexif
|
|
|
|
libgsf
|
|
|
|
libiptcdata
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libseccomp
|
|
|
|
libsoup
|
|
|
|
libtiff
|
|
|
|
libuuid
|
|
|
|
libvorbis
|
|
|
|
libxml2
|
|
|
|
poppler
|
|
|
|
taglib
|
|
|
|
upower
|
2017-10-04 22:50:14 +01:00
|
|
|
];
|
|
|
|
|
2018-05-15 18:55:40 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dminer_rss=false" # needs libgrss
|
|
|
|
];
|
2017-10-04 22:50:14 +01:00
|
|
|
|
2018-03-05 01:10:37 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit (gnome3) tracker;
|
|
|
|
})
|
2018-05-15 18:55:40 +01:00
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=795576
|
|
|
|
(fetchurl {
|
|
|
|
url = https://bugzilla.gnome.org/attachment.cgi?id=371427;
|
|
|
|
sha256 = "187flswvzymjfxwfrrhizb1cvs780zm39aa3i2vwa5fbllr7kcpf";
|
|
|
|
})
|
2018-03-05 01:10:37 +00:00
|
|
|
];
|
2017-10-04 22:50:14 +01:00
|
|
|
|
2018-03-21 06:45:31 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-05-15 18:55:40 +01:00
|
|
|
# https://github.com/NixOS/nixpkgs/pull/39534#discussion_r184339131
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/37693
|
|
|
|
preConfigure = ''
|
|
|
|
mesonFlagsArray+=("-Ddbus_services=$out/share/dbus-1/services")
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
2018-06-30 01:31:10 +01:00
|
|
|
|
2018-05-15 18:55:40 +01:00
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=796145
|
|
|
|
postFixup = ''
|
|
|
|
rm $out/share/tracker/miners/org.freedesktop.Tracker1.Miner.RSS.service
|
|
|
|
'';
|
|
|
|
|
2017-10-04 22:50:14 +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;
|
2018-05-15 18:55:40 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2017-10-04 22:50:14 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|