gnome3.tracker-miners: fix build
This commit is contained in:
parent
53caca4adb
commit
a57e9e289f
@ -1,5 +1,5 @@
|
||||
{ stdenv, intltool, fetchurl, libxml2, upower
|
||||
, pkgconfig, gtk3, glib
|
||||
, substituteAll, pkgconfig, gtk3, glib, gexiv2
|
||||
, bash, wrapGAppsHook, itstool, vala, sqlite, libxslt
|
||||
, gnome3, librsvg, gdk_pixbuf, libnotify
|
||||
, evolution-data-server, gst_all_1, poppler
|
||||
@ -32,18 +32,19 @@ stdenv.mkDerivation rec {
|
||||
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
|
||||
json-glib libcue libexif libgsf libiptcdata libjpeg libpng libseccomp libsoup
|
||||
libtiff libuuid libvorbis libxml2 poppler taglib upower
|
||||
libtiff libuuid libvorbis libxml2 poppler taglib upower gexiv2
|
||||
];
|
||||
|
||||
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"'
|
||||
'';
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
inherit (gnome3) tracker;
|
||||
})
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://wiki.gnome.org/Projects/Tracker;
|
||||
|
11
pkgs/desktops/gnome-3/core/tracker-miners/fix-paths.patch
Normal file
11
pkgs/desktops/gnome-3/core/tracker-miners/fix-paths.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/src/libtracker-miners-common/tracker-domain-ontology.c
|
||||
+++ b/src/libtracker-miners-common/tracker-domain-ontology.c
|
||||
@@ -372,7 +372,7 @@
|
||||
if (!priv->ontology_location) {
|
||||
gchar *ontology_path;
|
||||
|
||||
- ontology_path = g_build_filename (SHAREDIR, "tracker", "ontologies",
|
||||
+ ontology_path = g_build_filename ("@tracker@", "share", "tracker", "ontologies",
|
||||
priv->ontology_name, NULL);
|
||||
|
||||
if (!g_file_test (ontology_path, G_FILE_TEST_IS_DIR)) {
|
Loading…
Reference in New Issue
Block a user