mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
e4271d0b72
https://gitlab.gnome.org/GNOME/tracker-miners/-/compare/3.6.1...3.6.2 Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com> Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
145 lines
2.6 KiB
Nix
145 lines
2.6 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, asciidoc
|
|
, docbook-xsl-nons
|
|
, docbook_xml_dtd_45
|
|
, gettext
|
|
, itstool
|
|
, libxslt
|
|
, gexiv2
|
|
, tracker
|
|
, meson
|
|
, mesonEmulatorHook
|
|
, 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
|
|
, e2fsprogs
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tracker-miners";
|
|
version = "3.6.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "Ctci89Uywh11fPSI+UKWBnnqj0V5Je+pdlbtTJ6bpP8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
asciidoc
|
|
docbook-xsl-nons
|
|
docbook_xml_dtd_45
|
|
gettext
|
|
glib
|
|
itstool
|
|
libxslt
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
wrapGAppsNoGuiHook
|
|
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
mesonEmulatorHook
|
|
];
|
|
|
|
# TODO: add libenca, libosinfo
|
|
buildInputs = [
|
|
bzip2
|
|
dbus
|
|
exempi
|
|
giflib
|
|
gexiv2
|
|
totem-pl-parser
|
|
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
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
libseccomp
|
|
networkmanager
|
|
systemd
|
|
upower
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
e2fsprogs
|
|
];
|
|
|
|
mesonFlags = [
|
|
# TODO: tests do not like our sandbox
|
|
"-Dfunctional_tests=false"
|
|
|
|
# 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"
|
|
] ++ lib.optionals (!stdenv.isLinux) [
|
|
"-Dbattery_detection=none"
|
|
"-Dnetwork_manager=disabled"
|
|
"-Dsystemd_user_services=false"
|
|
];
|
|
|
|
postInstall = ''
|
|
glib-compile-schemas "$out/share/glib-2.0/schemas"
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://wiki.gnome.org/Projects/Tracker";
|
|
description = "Desktop-neutral user information store, search tool and indexer";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|