nixpkgs/pkgs/development/libraries/grilo-plugins/default.nix

103 lines
1.9 KiB
Nix
Raw Normal View History

{ stdenv
, fetchurl
2019-09-29 13:48:21 +02:00
, substituteAll
, meson
, ninja
, pkgconfig
, gettext
, gperf
, sqlite
, librest
, libarchive
, libsoup
, gnome3
, libxml2
, lua5_3
, liboauth
, libgdata
, libmediaart
, grilo
2019-09-29 13:48:21 +02:00
, gst_all_1
, gnome-online-accounts
, gmime
, gom
, json-glib
, avahi
, tracker
, dleyna-server
, itstool
, totem-pl-parser
}:
stdenv.mkDerivation rec {
2018-03-03 07:07:02 +01:00
pname = "grilo-plugins";
2020-02-20 03:07:39 +01:00
version = "0.3.11";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-02-20 03:07:39 +01:00
sha256 = "0wyd3n5mn7b77hxylkc3f62v01mlavh96901pz342hwrn42ydqnx";
};
2019-09-29 13:48:21 +02: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
]);
})
];
nativeBuildInputs = [
meson
ninja
pkgconfig
gettext
itstool
gperf # for lua-factory
];
2018-03-03 07:07:02 +01:00
buildInputs = [
grilo
libxml2
libgdata
lua5_3
liboauth
sqlite
gnome-online-accounts
totem-pl-parser
librest
libarchive
libsoup
gmime
gom
json-glib
avahi
libmediaart
tracker
dleyna-server
2019-09-29 13:48:21 +02:00
gst_all_1.gstreamer
2018-03-03 07:07:02 +01:00
];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
versionPolicy = "none";
};
};
meta = with stdenv.lib; {
2018-03-03 07:07:02 +01:00
homepage = https://wiki.gnome.org/Projects/Grilo;
description = "A collection of plugins for the Grilo framework";
maintainers = gnome3.maintainers;
2018-09-24 15:53:06 +02:00
license = licenses.lgpl21;
platforms = platforms.linux;
};
}