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

67 lines
1.9 KiB
Nix
Raw Normal View History

2019-09-02 16:46:04 +00:00
{ stdenv, fetchurl, gettext, meson, ninja, pkgconfig, gobject-introspection, python3
2018-08-17 11:19:13 +00:00
, gtk-doc, docbook_xsl, docbook_xml_dtd_412, docbook_xml_dtd_43, glibcLocales
, libxml2, upower, glib, wrapGAppsHook, vala, sqlite, libxslt, libstemmer
, gnome3, icu, libuuid, networkmanager, libsoup, json-glib, systemd, dbus
2019-09-02 16:46:04 +00:00
, substituteAll }:
2019-09-02 16:46:04 +00:00
stdenv.mkDerivation rec {
2018-03-15 12:25:55 +00:00
pname = "tracker";
2020-03-20 01:16:49 +00:00
version = "2.3.4";
2018-03-15 12:25:55 +00:00
2018-08-17 11:19:13 +00:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
2019-09-02 16:46:04 +00:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-03-20 01:16:49 +00:00
sha256 = "V3lSJEq5d8eLC4ji9jxBl+q6FuTWa/9pK39YmT4GUW0=";
};
2018-08-17 11:19:13 +00:00
nativeBuildInputs = [
2019-09-02 16:46:04 +00:00
meson ninja vala pkgconfig gettext libxslt wrapGAppsHook gobject-introspection
2018-08-17 11:19:13 +00:00
gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_43 glibcLocales
python3 # for data-generators
2019-09-02 16:46:04 +00:00
systemd # used for checks to install systemd user service
dbus # used for checks and pkgconfig to install dbus service/s
2018-08-17 11:19:13 +00:00
];
2017-10-04 21:50:14 +00:00
buildInputs = [
glib libxml2 sqlite upower icu networkmanager libsoup libuuid json-glib libstemmer
2017-10-04 21:50:14 +00:00
];
2018-08-17 11:19:13 +00:00
mesonFlags = [
# TODO: figure out wrapping unit tests, some of them fail on missing gsettings-desktop-schemas
"-Dfunctional_tests=false"
"-Ddocs=true"
2018-08-17 11:19:13 +00:00
];
patches = [
(substituteAll {
src = ./fix-paths.patch;
gdbus = "${glib.bin}/bin/gdbus";
})
];
2017-10-04 21:50:14 +00:00
postPatch = ''
patchShebangs utils/g-ir-merge/g-ir-merge
2018-08-17 11:19:13 +00:00
patchShebangs utils/data-generators/cc/generate
'';
postInstall = ''
glib-compile-schemas "$out/share/glib-2.0/schemas"
'';
2018-03-15 12:25:55 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
2018-08-17 11:19:13 +00:00
versionPolicy = "none";
2018-03-15 12:25:55 +00: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.gpl2;
platforms = platforms.linux;
};
}