forked from mirrors/nixpkgs
tracker-miners: switch to meson, some tweaks (#39534)
This commit is contained in:
parent
437cc2c640
commit
edbce18903
|
@ -1,47 +1,101 @@
|
||||||
{ stdenv, intltool, fetchurl, libxml2, upower
|
{ stdenv, fetchurl, substituteAll, intltool, itstool, libxslt, makeWrapper
|
||||||
, substituteAll, pkgconfig, gtk3, glib, gexiv2
|
, meson, ninja, pkgconfig, vala, wrapGAppsHook, bzip2, dbus, evolution-data-server
|
||||||
, bash, wrapGAppsHook, itstool, vala, sqlite, libxslt
|
, exempi, flac, giflib, glib, gnome3, gst_all_1, icu, json-glib, libcue, libexif
|
||||||
, gnome3, librsvg, gdk_pixbuf, libnotify
|
, libgsf, libiptcdata, libjpeg, libpng, libseccomp, libsoup, libtiff, libuuid
|
||||||
, evolution-data-server, gst_all_1, poppler
|
, libvorbis, libxml2, poppler, taglib, upower }:
|
||||||
, icu, taglib, libjpeg, libtiff, giflib, libcue
|
|
||||||
, libvorbis, flac, exempi, networkmanager
|
|
||||||
, libpng, libexif, libgsf, libuuid, bzip2
|
|
||||||
, libsoup, json-glib, libseccomp
|
|
||||||
, libiptcdata }:
|
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
pname = "tracker-miners";
|
pname = "tracker-miners";
|
||||||
version = "2.0.4";
|
version = "2.0.4";
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||||
sha256 = "0mp9m2waii583sjgr61m1ni6py6dry11r0rzidgvw1g4cxhn89j6";
|
sha256 = "0mp9m2waii583sjgr61m1ni6py6dry11r0rzidgvw1g4cxhn89j6";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${poppler.dev}/include/poppler";
|
# https://github.com/NixOS/nixpkgs/issues/39547
|
||||||
|
LIBRARY_PATH = stdenv.lib.makeLibraryPath [ giflib ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
nativeBuildInputs = [
|
||||||
|
intltool
|
||||||
nativeBuildInputs = [ vala pkgconfig intltool itstool libxslt wrapGAppsHook ];
|
itstool
|
||||||
# TODO: add libgrss, libenca, libosinfo
|
libxslt
|
||||||
buildInputs = [
|
makeWrapper
|
||||||
bzip2 evolution-data-server exempi flac giflib glib gnome3.totem-pl-parser
|
meson
|
||||||
gnome3.tracker gst_all_1.gst-plugins-base gst_all_1.gstreamer icu
|
ninja
|
||||||
json-glib libcue libexif libgsf libiptcdata libjpeg libpng libseccomp libsoup
|
pkgconfig
|
||||||
libtiff libuuid libvorbis libxml2 poppler taglib upower gexiv2
|
vala
|
||||||
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
LANG = "en_US.UTF-8"; # for running tests
|
# TODO: add libgrss, libenca, libosinfo
|
||||||
|
buildInputs = [
|
||||||
|
bzip2
|
||||||
|
dbus
|
||||||
|
evolution-data-server
|
||||||
|
exempi
|
||||||
|
flac
|
||||||
|
giflib
|
||||||
|
glib
|
||||||
|
gnome3.gexiv2
|
||||||
|
gnome3.totem-pl-parser
|
||||||
|
gnome3.tracker
|
||||||
|
gst_all_1.gst-plugins-base
|
||||||
|
gst_all_1.gstreamer
|
||||||
|
icu
|
||||||
|
json-glib
|
||||||
|
libcue
|
||||||
|
libexif
|
||||||
|
libgsf
|
||||||
|
libiptcdata
|
||||||
|
libjpeg
|
||||||
|
libpng
|
||||||
|
libseccomp
|
||||||
|
libsoup
|
||||||
|
libtiff
|
||||||
|
libuuid
|
||||||
|
libvorbis
|
||||||
|
libxml2
|
||||||
|
poppler
|
||||||
|
taglib
|
||||||
|
upower
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
mesonFlags = [
|
||||||
|
"-Dminer_rss=false" # needs libgrss
|
||||||
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
inherit (gnome3) tracker;
|
inherit (gnome3) tracker;
|
||||||
})
|
})
|
||||||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=795573
|
||||||
|
(fetchurl {
|
||||||
|
url = https://bugzilla.gnome.org/attachment.cgi?id=371422;
|
||||||
|
sha256 = "1rzwzrc7q73k42s1j1iw52chy10w6y3xksfrzg2l42nn9wk7n281";
|
||||||
|
})
|
||||||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=795574
|
||||||
|
(fetchurl {
|
||||||
|
url = https://bugzilla.gnome.org/attachment.cgi?id=371423;
|
||||||
|
sha256 = "0b2ck8z4b2yrgwg4v9jsac5n8h3a91qkp90vv17wxcvr4v50fg48";
|
||||||
|
})
|
||||||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=795575
|
||||||
|
(fetchurl {
|
||||||
|
url = https://bugzilla.gnome.org/attachment.cgi?id=371424;
|
||||||
|
sha256 = "03i29fabxrpraydh7712vdrc571qmiq0l4axj24gbi6h77xn7mxc";
|
||||||
|
})
|
||||||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=795576
|
||||||
|
(fetchurl {
|
||||||
|
url = https://bugzilla.gnome.org/attachment.cgi?id=371427;
|
||||||
|
sha256 = "187flswvzymjfxwfrrhizb1cvs780zm39aa3i2vwa5fbllr7kcpf";
|
||||||
|
})
|
||||||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=795577
|
||||||
|
(fetchurl {
|
||||||
|
url = https://bugzilla.gnome.org/attachment.cgi?id=371425;
|
||||||
|
sha256 = "05m629469jr2lm2cjs54n7xwyim2d5rwwvdjxzcwh5qpfjds5phm";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
@ -51,11 +105,26 @@ in stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/39534#discussion_r184339131
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/37693
|
||||||
|
preConfigure = ''
|
||||||
|
mesonFlagsArray+=("-Ddbus_services=$out/share/dbus-1/services")
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
|
||||||
|
'';
|
||||||
|
|
||||||
|
# https://bugzilla.gnome.org/show_bug.cgi?id=796145
|
||||||
|
postFixup = ''
|
||||||
|
rm $out/share/tracker/miners/org.freedesktop.Tracker1.Miner.RSS.service
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://wiki.gnome.org/Projects/Tracker;
|
homepage = https://wiki.gnome.org/Projects/Tracker;
|
||||||
description = "Desktop-neutral user information store, search tool and indexer";
|
description = "Desktop-neutral user information store, search tool and indexer";
|
||||||
maintainers = gnome3.maintainers;
|
maintainers = gnome3.maintainers;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue