nixpkgs/pkgs/desktops/gnome-3/core/tracker/default.nix

72 lines
2.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, intltool, 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
, substituteAll}:
2018-03-15 12:25:55 +00:00
let
pname = "tracker";
version = "2.2.2";
2018-03-15 12:25:55 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
2018-08-17 12:19:13 +01:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "1rp2c6k7ajcm553p9kpni87zgi9aplm3s01rl7pk575az5i399y6";
};
2018-08-17 12:19:13 +01:00
nativeBuildInputs = [
meson ninja vala pkgconfig intltool 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
2018-08-17 12:19:13 +01:00
];
2017-10-04 22:50:14 +01:00
buildInputs = [
2018-08-17 12:19:13 +01:00
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
LC_ALL = "en_US.UTF-8";
mesonFlags = [
"-Ddbus_services=${placeholder ''out''}/share/dbus-1/services"
"-Dsystemd_user_services=${placeholder ''out''}/lib/systemd/user"
2018-08-17 12:19:13 +01:00
# 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;
};
}