2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-10-23 18:28:05 +01:00
|
|
|
, fetchurl
|
2020-10-23 18:49:33 +01:00
|
|
|
, fetchpatch
|
|
|
|
, autoconf-archive
|
|
|
|
, autoreconfHook
|
2020-10-23 18:28:05 +01:00
|
|
|
, pkg-config
|
|
|
|
, glib
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2020-10-23 18:28:05 +01:00
|
|
|
, libxml2
|
|
|
|
, libgdata
|
|
|
|
, grilo
|
|
|
|
, libzapojit
|
|
|
|
, grilo-plugins
|
|
|
|
, gnome-online-accounts
|
|
|
|
, libmediaart
|
2020-10-23 18:49:33 +01:00
|
|
|
, tracker
|
2020-10-23 18:28:05 +01:00
|
|
|
, gfbgraph
|
|
|
|
, librest
|
|
|
|
, libsoup
|
|
|
|
, json-glib
|
|
|
|
, gmp
|
|
|
|
, openssl
|
|
|
|
, dleyna-server
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-online-miners";
|
2019-09-04 12:27:18 +01:00
|
|
|
version = "3.34.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-online-miners/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-04 12:27:18 +01:00
|
|
|
sha256 = "1n2jz9i8a42zwxx5h8j2gdy6q1vyydh4vl00r0al7w8jzdh24p44";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2020-10-23 18:49:33 +01:00
|
|
|
patches = [
|
|
|
|
# Fix use after free
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-online-miners/merge_requests/4
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-online-miners/commit/9eb57c6a8cd1a925c508646edae936eee0a8e46b.patch";
|
|
|
|
sha256 = "O1GRnzs33I0mFzrNDFkTGiBKstq5krYg7fwj60367TA=";
|
|
|
|
})
|
|
|
|
|
|
|
|
# Port to Tracker 3
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-online-miners/merge_requests/3
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-online-miners/commit/2d3798252807cad9eb061ed2b37e35170c1a1daf.patch";
|
|
|
|
sha256 = "hwrkxroMpTfOwJAPkYQFdDCroZ2qSsvOgDetrJDig20=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-online-miners/commit/1548c0c527f0e4389047448d7d3b6cff55278c8e.patch";
|
|
|
|
sha256 = "U9w81c9Kze7kv5KHeGqvDeSNHzSayVrUG0XYsYMa1sg=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-online-miners/commit/941ebd8890c9ac4f75a1f58ccbea9731f46ad912.patch";
|
|
|
|
sha256 = "JHtDlZ54/BlSiUA3ROHfCTtTKSin3g6JNm8NS6pYML8=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-online-miners/commit/d1681a64bc3f65894af2549e3ba2bffbaf6f539a.patch";
|
|
|
|
sha256 = "9ZEatz5I81UAnjS1qCGWYDQQOxg/qp9Tg3xG/a+3goc=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-online-miners/commit/3d2af8785c84d6e50d8a8e6a2569a4b709184e94.patch";
|
|
|
|
sha256 = "7bdUE2k6g3Z8sdGYEb6pUm1/wbKDe4BHbylXUzfuTG0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-10-23 18:28:05 +01:00
|
|
|
nativeBuildInputs = [
|
2020-10-23 18:49:33 +01:00
|
|
|
# patch changes configure.ac
|
|
|
|
autoconf-archive
|
|
|
|
autoreconfHook
|
|
|
|
|
2020-10-23 18:28:05 +01:00
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [
|
2020-10-23 18:28:05 +01:00
|
|
|
glib
|
|
|
|
libgdata
|
|
|
|
libxml2
|
|
|
|
libsoup
|
|
|
|
gmp
|
|
|
|
openssl
|
|
|
|
grilo
|
|
|
|
libzapojit
|
|
|
|
grilo-plugins
|
|
|
|
gnome-online-accounts
|
|
|
|
libmediaart
|
2020-10-23 18:49:33 +01:00
|
|
|
tracker
|
2020-10-23 18:28:05 +01:00
|
|
|
gfbgraph
|
|
|
|
json-glib
|
|
|
|
librest
|
2019-02-13 21:47:50 +00:00
|
|
|
dleyna-server
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2020-10-23 18:49:33 +01:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=format-security" # https://gitlab.gnome.org/GNOME/gnome-online-miners/merge_requests/3/diffs#note_942747
|
|
|
|
];
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2019-02-13 21:47:50 +00:00
|
|
|
packageName = "gnome-online-miners";
|
2021-05-07 22:18:14 +01:00
|
|
|
attrPath = "gnome.gnome-online-miners";
|
2019-02-13 21:47:50 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/GnomeOnlineMiners";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "A set of crawlers that go through your online content and index them locally in Tracker";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2020-10-23 18:28:05 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|