2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
2020-11-12 09:05:59 +00:00
|
|
|
, asciidoc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_45
|
|
|
|
, gettext
|
2020-04-24 23:36:52 +00:00
|
|
|
, itstool
|
|
|
|
, libxslt
|
|
|
|
, gexiv2
|
|
|
|
, tracker
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, vala
|
2022-10-21 18:38:19 +00:00
|
|
|
, wrapGAppsNoGuiHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, bzip2
|
|
|
|
, dbus
|
|
|
|
, exempi
|
|
|
|
, giflib
|
|
|
|
, glib
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gst_all_1
|
|
|
|
, icu
|
|
|
|
, json-glib
|
|
|
|
, libcue
|
|
|
|
, libexif
|
|
|
|
, libgsf
|
|
|
|
, libgxps
|
|
|
|
, libiptcdata
|
|
|
|
, libjpeg
|
|
|
|
, libosinfo
|
|
|
|
, libpng
|
|
|
|
, libseccomp
|
|
|
|
, libtiff
|
|
|
|
, libuuid
|
|
|
|
, libxml2
|
2020-11-12 09:05:59 +00:00
|
|
|
, networkmanager
|
2020-04-24 23:36:52 +00:00
|
|
|
, poppler
|
2020-11-12 09:05:59 +00:00
|
|
|
, systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
, taglib
|
|
|
|
, upower
|
|
|
|
, totem-pl-parser
|
2022-09-09 14:08:57 +00:00
|
|
|
, e2fsprogs
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tracker-miners";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "3.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "EB42CPHCi/7YriVSL3pyC1WfiJp24oCvvlCk2LBk+Sw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
asciidoc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_45
|
|
|
|
gettext
|
2020-04-24 23:36:52 +00:00
|
|
|
itstool
|
|
|
|
libxslt
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
vala
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapGAppsNoGuiHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# TODO: add libenca, libosinfo
|
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
dbus
|
|
|
|
exempi
|
|
|
|
giflib
|
|
|
|
glib
|
|
|
|
gexiv2
|
|
|
|
totem-pl-parser
|
|
|
|
tracker
|
|
|
|
gst_all_1.gst-plugins-base
|
2022-06-16 17:23:12 +00:00
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-plugins-ugly
|
2020-04-24 23:36:52 +00:00
|
|
|
gst_all_1.gstreamer
|
2022-06-16 17:23:12 +00:00
|
|
|
gst_all_1.gst-libav
|
2020-04-24 23:36:52 +00:00
|
|
|
icu
|
|
|
|
json-glib
|
|
|
|
libcue
|
|
|
|
libexif
|
|
|
|
libgsf
|
|
|
|
libgxps
|
|
|
|
libiptcdata
|
|
|
|
libjpeg
|
|
|
|
libosinfo
|
|
|
|
libpng
|
|
|
|
libtiff
|
|
|
|
libuuid
|
|
|
|
libxml2
|
|
|
|
poppler
|
|
|
|
taglib
|
2022-09-09 14:08:57 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
libseccomp
|
|
|
|
networkmanager
|
|
|
|
systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
upower
|
2022-09-09 14:08:57 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
e2fsprogs
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
# TODO: tests do not like our sandbox
|
|
|
|
"-Dfunctional_tests=false"
|
2021-08-08 23:34:03 +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-09-09 14:08:57 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isLinux) [
|
|
|
|
"-Dnetwork_manager=disabled"
|
|
|
|
"-Dsystemd_user_services=false"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
glib-compile-schemas "$out/share/glib-2.0/schemas"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Tracker";
|
|
|
|
description = "Desktop-neutral user information store, search tool and indexer";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.gpl2Plus;
|
2022-09-09 14:08:57 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|