2019-03-16 05:25:32 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2019-09-29 12:48:21 +01:00
|
|
|
, substituteAll
|
2019-03-16 05:25:32 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-03-16 05:25:32 +00:00
|
|
|
, gettext
|
2019-04-17 21:07:29 +01:00
|
|
|
, gperf
|
2019-03-16 05:25:32 +00:00
|
|
|
, sqlite
|
|
|
|
, librest
|
2019-04-17 21:07:29 +01:00
|
|
|
, libarchive
|
|
|
|
, libsoup
|
2019-03-16 05:25:32 +00:00
|
|
|
, gnome3
|
|
|
|
, libxml2
|
2019-04-17 21:07:29 +01:00
|
|
|
, lua5_3
|
2019-03-16 05:25:32 +00:00
|
|
|
, liboauth
|
|
|
|
, libgdata
|
|
|
|
, libmediaart
|
|
|
|
, grilo
|
2019-09-29 12:48:21 +01:00
|
|
|
, gst_all_1
|
2019-03-16 05:25:32 +00:00
|
|
|
, gnome-online-accounts
|
|
|
|
, gmime
|
2019-09-29 04:13:14 +01:00
|
|
|
, gom
|
2019-03-16 05:25:32 +00:00
|
|
|
, json-glib
|
|
|
|
, avahi
|
|
|
|
, tracker
|
|
|
|
, dleyna-server
|
|
|
|
, itstool
|
|
|
|
, totem-pl-parser
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-03-16 05:25:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 06:07:02 +00:00
|
|
|
pname = "grilo-plugins";
|
2020-09-18 16:27:56 +01:00
|
|
|
version = "0.3.12";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-16 05:25:32 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-09-18 16:27:56 +01:00
|
|
|
sha256 = "0xr59gzb8gw2bgj14mjllgn8y7srh373j0fp0v16ak8nd84dzdn6";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2019-09-29 12:48:21 +01:00
|
|
|
patches = [
|
|
|
|
# grl-chromaprint requires the following GStreamer elements:
|
|
|
|
# * fakesink (gstreamer)
|
|
|
|
# * playbin (gst-plugins-base)
|
|
|
|
# * chromaprint (gst-plugins-bad)
|
|
|
|
(substituteAll {
|
|
|
|
src = ./chromaprint-gst-plugins.patch;
|
|
|
|
load_plugins = stdenv.lib.concatMapStrings (plugin: ''gst_registry_scan_path(gst_registry_get(), "${plugin}/lib/gstreamer-1.0");'') (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-bad
|
|
|
|
]);
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-03-16 05:25:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-03-16 05:25:32 +00:00
|
|
|
gettext
|
|
|
|
itstool
|
2019-04-17 21:07:29 +01:00
|
|
|
gperf # for lua-factory
|
2019-03-16 05:25:32 +00:00
|
|
|
];
|
|
|
|
|
2018-03-03 06:07:02 +00:00
|
|
|
buildInputs = [
|
2019-03-16 05:25:32 +00:00
|
|
|
grilo
|
|
|
|
libxml2
|
|
|
|
libgdata
|
2019-04-17 21:07:29 +01:00
|
|
|
lua5_3
|
2019-03-16 05:25:32 +00:00
|
|
|
liboauth
|
|
|
|
sqlite
|
|
|
|
gnome-online-accounts
|
|
|
|
totem-pl-parser
|
|
|
|
librest
|
2019-04-17 21:07:29 +01:00
|
|
|
libarchive
|
|
|
|
libsoup
|
2019-03-16 05:25:32 +00:00
|
|
|
gmime
|
2019-09-29 04:13:14 +01:00
|
|
|
gom
|
2019-03-16 05:25:32 +00:00
|
|
|
json-glib
|
|
|
|
avahi
|
|
|
|
libmediaart
|
|
|
|
tracker
|
|
|
|
dleyna-server
|
2019-09-29 12:48:21 +01:00
|
|
|
gst_all_1.gstreamer
|
2018-03-03 06:07:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Grilo";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "A collection of plugins for the Grilo framework";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2018-09-24 14:53:06 +01:00
|
|
|
license = licenses.lgpl21;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|