nixpkgs/pkgs/development/libraries/tracker-miners/default.nix

141 lines
2.4 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
, substituteAll
, intltool
, itstool
, libxslt
, gexiv2
, tracker
, 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 {
2018-03-21 07:45:31 +01:00
pname = "tracker-miners";
2019-09-02 18:46:05 +02:00
version = "2.3.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-09-02 18:46:05 +02:00
sha256 = "1ky7hd0vms1z40a0y9wq9pg3l7gxh4p6a0ngmnjqh8p23qfxdrxd";
};
nativeBuildInputs = [
intltool
itstool
libxslt
meson
ninja
pkgconfig
vala
wrapGAppsHook
];
2017-10-04 23:50:14 +02:00
2018-08-18 15:55:14 +02:00
# TODO: add libenca, libosinfo
2017-10-04 23:50:14 +02:00
buildInputs = [
bzip2
dbus
evolution-data-server
exempi
flac
giflib
glib
2019-02-13 22:47:50 +01:00
gexiv2
totem-pl-parser
2019-02-13 22:47:50 +01:00
tracker
gst_all_1.gst-plugins-base
gst_all_1.gstreamer
icu
json-glib
libcue
libexif
2018-08-18 15:55:14 +02:00
libgrss
libgsf
libgxps
libiptcdata
libjpeg
libosinfo
libpng
libseccomp
libsoup
libtiff
libuuid
libvorbis
libxml2
poppler
taglib
upower
2017-10-04 23:50:14 +02:00
];
mesonFlags = [
2018-08-18 15:55:14 +02:00
# TODO: tests do not like our sandbox
"-Dfunctional_tests=false"
2018-09-05 02:52:59 +02:00
"-Ddbus_services=${placeholder "out"}/share/dbus-1/services"
"-Dsystemd_user_services=${placeholder "out"}/lib/systemd/user"
];
2017-10-04 23:50:14 +02:00
2018-03-05 02:10:37 +01:00
patches = [
(substituteAll {
src = ./fix-paths.patch;
2019-08-23 02:49:39 +02:00
inherit tracker;
2018-03-05 02:10:37 +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 02:10:37 +01:00
];
2017-10-04 23:50:14 +02:00
postInstall = ''
glib-compile-schemas "$out/share/glib-2.0/schemas"
'';
2018-06-30 02:31:10 +02:00
2018-08-18 15:55:14 +02:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
versionPolicy = "none";
};
};
2017-10-04 23:50:14 +02: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;
license = licenses.gpl2Plus;
2017-10-04 23:50:14 +02:00
platforms = platforms.linux;
};
}