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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

102 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
2019-09-29 12:48:21 +01:00
, substituteAll
, meson
, ninja
, pkg-config
, gettext
, gperf
, sqlite
, librest
, libarchive
, libsoup
, gnome
, libxml2
, lua5_3
, liboauth
, libgdata
, libmediaart
, grilo
2019-09-29 12:48:21 +01: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 06:07:02 +00:00
pname = "grilo-plugins";
2021-10-14 21:48:20 +01:00
version = "0.3.14";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2021-10-14 21:48:20 +01:00
sha256 = "aGhEs07HOySTH/bMT2Az8AcpR6bbYKzcf7Pq8Velgcg=";
};
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 = lib.concatMapStrings (plugin: ''gst_registry_scan_path(gst_registry_get(), "${lib.getLib plugin}/lib/gstreamer-1.0");'') (with gst_all_1; [
2019-09-29 12:48:21 +01:00
gstreamer
gst-plugins-base
gst-plugins-bad
]);
})
];
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
itstool
gperf # for lua-factory
];
2018-03-03 06:07:02 +00: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 12:48:21 +01:00
gst_all_1.gstreamer
2018-03-03 06:07:02 +00:00
];
passthru = {
updateScript = gnome.updateScript {
2018-03-03 06:07:02 +00:00
packageName = pname;
versionPolicy = "none";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/Grilo";
description = "A collection of plugins for the Grilo framework";
maintainers = teams.gnome.members;
2021-10-14 21:48:20 +01:00
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}