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

68 lines
2.0 KiB
Nix
Raw Normal View History

2019-09-02 17:46:04 +01:00
{ stdenv, fetchurl, gettext, meson, ninja, pkgconfig, gobject-introspection, python3
2018-08-17 12:19:13 +01: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 17:46:04 +01:00
, substituteAll }:
2019-09-02 17:46:04 +01:00
stdenv.mkDerivation rec {
2018-03-15 12:25:55 +00:00
pname = "tracker";
2019-10-14 01:24:30 +01:00
version = "2.3.1";
2018-03-15 12:25:55 +00:00
2018-08-17 12:19:13 +01:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
2019-09-02 17:46:04 +01:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-10-14 01:24:30 +01:00
sha256 = "1888vyz2l5n46ywb70fryd0qipyh3x5n6q0mk56jzbb5whk8fx5n";
};
2018-08-17 12:19:13 +01:00
nativeBuildInputs = [
2019-09-02 17:46:04 +01:00
meson ninja vala pkgconfig gettext libxslt wrapGAppsHook gobject-introspection
2018-08-17 12:19:13 +01:00
gtk-doc docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_43 glibcLocales
python3 # for data-generators
2019-09-02 17:46:04 +01:00
systemd # used for checks to install systemd user service
dbus # used for checks and pkgconfig to install dbus service/s
2018-08-17 12:19:13 +01:00
];
2017-10-04 22:50:14 +01:00
buildInputs = [
glib libxml2 sqlite upower icu networkmanager libsoup libuuid json-glib libstemmer
2017-10-04 22:50:14 +01:00
];
2018-08-17 12:19:13 +01: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 12:19:13 +01:00
];
patches = [
(substituteAll {
src = ./fix-paths.patch;
gdbus = "${glib.bin}/bin/gdbus";
})
];
2017-10-04 22:50:14 +01:00
postPatch = ''
patchShebangs utils/g-ir-merge/g-ir-merge
2018-08-17 12:19:13 +01: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;
attrPath = "gnome3.${pname}";
2018-08-17 12:19:13 +01: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;
};
}