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

62 lines
1.8 KiB
Nix
Raw Normal View History

2017-10-04 21:50:14 +00:00
{ stdenv, intltool, fetchurl, libxml2, upower
2018-03-05 01:10:37 +00:00
, substituteAll, pkgconfig, gtk3, glib, gexiv2
2017-10-04 21:50:14 +00:00
, bash, wrapGAppsHook, itstool, vala, sqlite, libxslt
, gnome3, librsvg, gdk_pixbuf, libnotify
, evolution-data-server, gst_all_1, poppler
2017-10-04 21:50:14 +00:00
, icu, taglib, libjpeg, libtiff, giflib, libcue
, libvorbis, flac, exempi, networkmanager
, libpng, libexif, libgsf, libuuid, bzip2
, libsoup, json-glib, libseccomp
2017-10-04 21:50:14 +00:00
, libiptcdata }:
2018-03-21 06:45:31 +00:00
let
pname = "tracker-miners";
2018-03-04 20:18:49 +00:00
version = "2.0.4";
2018-03-21 06:45:31 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
2018-03-21 06:45:31 +00:00
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
2018-03-04 20:18:49 +00:00
sha256 = "0mp9m2waii583sjgr61m1ni6py6dry11r0rzidgvw1g4cxhn89j6";
};
2017-10-04 21:50:14 +00:00
NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
enableParallelBuilding = true;
nativeBuildInputs = [ vala pkgconfig intltool itstool libxslt wrapGAppsHook ];
2018-03-21 06:45:31 +00:00
# TODO: add libgrss, libenca, libosinfo
2017-10-04 21:50:14 +00:00
buildInputs = [
bzip2 evolution-data-server exempi flac giflib glib gnome3.totem-pl-parser
2017-10-04 21:50:14 +00:00
gnome3.tracker gst_all_1.gst-plugins-base gst_all_1.gstreamer icu
json-glib libcue libexif libgsf libiptcdata libjpeg libpng libseccomp libsoup
2018-03-05 01:10:37 +00:00
libtiff libuuid libvorbis libxml2 poppler taglib upower gexiv2
2017-10-04 21:50:14 +00:00
];
LANG = "en_US.UTF-8"; # for running tests
doCheck = true;
2018-03-05 01:10:37 +00:00
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit (gnome3) tracker;
})
];
2017-10-04 21:50:14 +00:00
2018-03-21 06:45:31 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
2017-10-04 21:50:14 +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;
};
}