mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 02:14:36 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
102 lines
1.9 KiB
Nix
102 lines
1.9 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, substituteAll
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gettext
|
|
, gperf
|
|
, sqlite
|
|
, librest
|
|
, libarchive
|
|
, libsoup
|
|
, gnome3
|
|
, libxml2
|
|
, lua5_3
|
|
, liboauth
|
|
, libgdata
|
|
, libmediaart
|
|
, grilo
|
|
, gst_all_1
|
|
, gnome-online-accounts
|
|
, gmime
|
|
, gom
|
|
, json-glib
|
|
, avahi
|
|
, tracker
|
|
, dleyna-server
|
|
, itstool
|
|
, totem-pl-parser
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "grilo-plugins";
|
|
version = "0.3.12";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "0xr59gzb8gw2bgj14mjllgn8y7srh373j0fp0v16ak8nd84dzdn6";
|
|
};
|
|
|
|
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
|
|
pkg-config
|
|
gettext
|
|
itstool
|
|
gperf # for lua-factory
|
|
];
|
|
|
|
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
|
|
gst_all_1.gstreamer
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://wiki.gnome.org/Projects/Grilo";
|
|
description = "A collection of plugins for the Grilo framework";
|
|
maintainers = teams.gnome.members;
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|