gnome3.tracker-miners: fix build

This commit is contained in:
Jan Tojnar 2018-03-21 07:45:31 +01:00
parent 04325dfe79
commit 819d766f77
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 22 additions and 8 deletions

View File

@ -9,25 +9,23 @@
, libsoup, json-glib, libseccomp
, libiptcdata }:
stdenv.mkDerivation rec {
name = "tracker-miners-${version}";
let
pname = "tracker-miners";
version = "2.0.4";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/tracker-miners/${gnome3.versionBranch version}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0mp9m2waii583sjgr61m1ni6py6dry11r0rzidgvw1g4cxhn89j6";
};
passthru = {
updateScript = gnome3.updateScript { packageName = "tracker-miners"; attrPath = "gnome3.tracker-miners"; };
};
NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
enableParallelBuilding = true;
nativeBuildInputs = [ vala pkgconfig intltool itstool libxslt wrapGAppsHook ];
# TODO: add libgrss, libenca
# TODO: add libgrss, libenca, libosinfo
buildInputs = [
bzip2 evolution-data-server exempi flac giflib glib gnome3.totem-pl-parser
gnome3.tracker gst_all_1.gst-plugins-base gst_all_1.gstreamer icu
@ -46,6 +44,13 @@ stdenv.mkDerivation rec {
})
];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Projects/Tracker;
description = "Desktop-neutral user information store, search tool and indexer";

View File

@ -1,5 +1,14 @@
--- a/src/libtracker-miners-common/tracker-domain-ontology.c
+++ b/src/libtracker-miners-common/tracker-domain-ontology.c
@@ -313,7 +313,7 @@
goto end;
}
} else {
- path = g_build_filename (SHAREDIR, "tracker", "domain-ontologies",
+ path = g_build_filename ("@tracker@", "share", "tracker", "domain-ontologies",
DEFAULT_RULE, NULL);
if (!g_file_test (path, G_FILE_TEST_IS_REGULAR)) {
@@ -372,7 +372,7 @@
if (!priv->ontology_location) {
gchar *ontology_path;