2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-03-16 05:25:32 +00:00
|
|
|
, 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
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2019-03-16 05:25:32 +00:00
|
|
|
, 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";
|
2021-04-06 19:43:57 +01:00
|
|
|
version = "0.3.13";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-04-06 19:43:57 +01:00
|
|
|
sha256 = "HEMF1nNkqTBUODbMGYLzDpRpc7j/avPv4x2HcJq1IPg=";
|
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;
|
2021-01-21 17:00:13 +00:00
|
|
|
load_plugins = lib.concatMapStrings (plugin: ''gst_registry_scan_path(gst_registry_get(), "${plugin}/lib/gstreamer-1.0");'') (with gst_all_1; [
|
2019-09-29 12:48:21 +01:00
|
|
|
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 = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 06:07:02 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|