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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

141 lines
2.4 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, asciidoc
, docbook-xsl-nons
, docbook_xml_dtd_45
, gettext
, itstool
, libxslt
, gexiv2
, tracker
, meson
, ninja
, pkg-config
, vala
, wrapGAppsNoGuiHook
, bzip2
, dbus
, exempi
, giflib
, glib
, gnome
, gst_all_1
, icu
, json-glib
, libcue
, libexif
, libgsf
, libgxps
, libiptcdata
, libjpeg
, libosinfo
, libpng
, libseccomp
, libtiff
, libuuid
, libxml2
, networkmanager
, poppler
, systemd
, taglib
, upower
, totem-pl-parser
2022-08-25 18:32:39 +00:00
, e2fsprogs
}:
stdenv.mkDerivation rec {
2018-03-21 06:45:31 +00:00
pname = "tracker-miners";
version = "3.4.2";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "EB42CPHCi/7YriVSL3pyC1WfiJp24oCvvlCk2LBk+Sw=";
};
nativeBuildInputs = [
asciidoc
docbook-xsl-nons
docbook_xml_dtd_45
gettext
itstool
libxslt
meson
ninja
pkg-config
vala
wrapGAppsNoGuiHook
];
2017-10-04 21:50:14 +00:00
2018-08-18 13:55:14 +00:00
# TODO: add libenca, libosinfo
2017-10-04 21:50:14 +00:00
buildInputs = [
bzip2
dbus
exempi
giflib
glib
2019-02-13 21:47:50 +00:00
gexiv2
totem-pl-parser
2019-02-13 21:47:50 +00:00
tracker
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gstreamer
gst_all_1.gst-libav
icu
json-glib
libcue
libexif
libgsf
libgxps
libiptcdata
libjpeg
libosinfo
libpng
libtiff
libuuid
libxml2
poppler
taglib
2022-08-25 18:32:39 +00:00
] ++ lib.optionals stdenv.isLinux [
libseccomp
networkmanager
systemd
upower
2022-08-25 18:32:39 +00:00
] ++ lib.optionals stdenv.isDarwin [
e2fsprogs
2017-10-04 21:50:14 +00:00
];
mesonFlags = [
2018-08-18 13:55:14 +00:00
# TODO: tests do not like our sandbox
"-Dfunctional_tests=false"
2021-07-27 15:18:30 +00:00
# libgrss is unmaintained and has no new releases since 2015, and an open
# security issue since then. Despite a patch now being availab, we're opting
# to be safe due to the general state of the project
"-Dminer_rss=false"
2022-08-25 18:32:39 +00:00
] ++ lib.optionals (!stdenv.isLinux) [
"-Dnetwork_manager=disabled"
"-Dsystemd_user_services=false"
];
2017-10-04 21:50:14 +00:00
postInstall = ''
glib-compile-schemas "$out/share/glib-2.0/schemas"
'';
2018-06-30 00:31:10 +00:00
2018-08-18 13:55:14 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-08-18 13:55:14 +00:00
packageName = pname;
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/Tracker";
2017-10-04 21:50:14 +00:00
description = "Desktop-neutral user information store, search tool and indexer";
maintainers = teams.gnome.members;
license = licenses.gpl2Plus;
2022-08-25 18:32:39 +00:00
platforms = platforms.unix;
2017-10-04 21:50:14 +00:00
};
}