tracker-miners-2: init at 2.3.3

This commit is contained in:
WORLDofPEACE 2020-09-20 20:57:35 -04:00 committed by Jan Tojnar
parent b2e2b8cb2b
commit 620c1ef3a0
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
3 changed files with 152 additions and 0 deletions

View File

@ -0,0 +1,139 @@
{ stdenv
, fetchurl
, substituteAll
, intltool
, itstool
, libxslt
, gexiv2
, tracker_2
, meson
, ninja
, pkgconfig
, vala
, wrapGAppsHook
, bzip2
, dbus
, evolution-data-server
, exempi
, flac
, giflib
, glib
, gnome3
, gst_all_1
, icu
, json-glib
, libcue
, libexif
, libgrss
, libgsf
, libgxps
, libiptcdata
, libjpeg
, libosinfo
, libpng
, libseccomp
, libsoup
, libtiff
, libuuid
, libvorbis
, libxml2
, poppler
, taglib
, upower
, totem-pl-parser
}:
stdenv.mkDerivation rec {
pname = "tracker-miners";
version = "2.3.3";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "06abxrnrz7xayykrabn135rpsm6z0fqw7gibrb9j09l6swlalwkl";
};
nativeBuildInputs = [
intltool
itstool
libxslt
meson
ninja
pkgconfig
vala
wrapGAppsHook
];
# TODO: add libenca, libosinfo
buildInputs = [
bzip2
dbus
evolution-data-server
exempi
flac
giflib
glib
gexiv2
totem-pl-parser
tracker_2
gst_all_1.gst-plugins-base
gst_all_1.gstreamer
icu
json-glib
libcue
libexif
libgrss
libgsf
libgxps
libiptcdata
libjpeg
libosinfo
libpng
libseccomp
libsoup
libtiff
libuuid
libvorbis
libxml2
poppler
taglib
upower
];
mesonFlags = [
# TODO: tests do not like our sandbox
"-Dfunctional_tests=false"
"-Ddbus_services=${placeholder "out"}/share/dbus-1/services"
"-Dsystemd_user_services=${placeholder "out"}/lib/systemd/user"
];
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit tracker_2;
})
# https://bugzilla.gnome.org/show_bug.cgi?id=795576
(fetchurl {
url = "https://bugzilla.gnome.org/attachment.cgi?id=371427";
sha256 = "187flswvzymjfxwfrrhizb1cvs780zm39aa3i2vwa5fbllr7kcpf";
})
];
postInstall = ''
glib-compile-schemas "$out/share/glib-2.0/schemas"
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = with stdenv.lib; {
homepage = "https://wiki.gnome.org/Projects/Tracker";
description = "Desktop-neutral user information store, search tool and indexer";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}

View File

@ -0,0 +1,11 @@
--- a/src/libtracker-miners-common/tracker-domain-ontology.c
+++ b/src/libtracker-miners-common/tracker-domain-ontology.c
@@ -323,7 +323,7 @@
goto end;
}
} else {
- path = g_build_filename (SHAREDIR, "tracker", "domain-ontologies",
+ path = g_build_filename ("@tracker_2@", "share", "tracker", "domain-ontologies",
DEFAULT_RULE, NULL);
if (!g_file_test (path, G_FILE_TEST_IS_REGULAR)) {

View File

@ -3404,6 +3404,8 @@ in
tracker-miners = callPackage ../development/libraries/tracker-miners { };
tracker-miners-2 = callPackage ../development/libraries/tracker-miners/2.x { };
tracy = callPackage ../development/tools/tracy {
inherit (darwin.apple_sdk.frameworks) Carbon AppKit;
};