mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
clapper-enhancers: init at 0.8.2
This commit is contained in:
parent
2139289f87
commit
6767c5a8af
1 changed files with 72 additions and 0 deletions
72
pkgs/by-name/cl/clapper-enhancers/package.nix
Normal file
72
pkgs/by-name/cl/clapper-enhancers/package.nix
Normal file
|
@ -0,0 +1,72 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
gobject-introspection,
|
||||
libpeas2,
|
||||
json-glib,
|
||||
libsoup_3,
|
||||
glib,
|
||||
clapper-unwrapped,
|
||||
gst_all_1,
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "clapper-enhancers";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Rafostar";
|
||||
repo = "clapper-enhancers";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-CUfTz+YvliJXiv/nsdrpDVFSblqoSW7js8vAtJ9u5vM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
python3Packages.python
|
||||
python3Packages.wrapPython
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libpeas2
|
||||
json-glib
|
||||
libsoup_3
|
||||
glib
|
||||
clapper-unwrapped
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
gst_all_1.gst-plugins-good
|
||||
gst_all_1.gst-plugins-bad
|
||||
gst_all_1.gst-plugins-ugly
|
||||
];
|
||||
|
||||
pythonPath = with python3Packages; [
|
||||
yt-dlp
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
buildPythonPath "$out $pythonPath"
|
||||
for yt_plugin in $out/lib/clapper-enhancers/plugins/yt-dlp/*.py; do
|
||||
patchPythonScript $yt_plugin
|
||||
done
|
||||
'';
|
||||
|
||||
mesonFlags = [ "-Denhancersdir=${placeholder "out"}/${finalAttrs.passthru.pluginPath}" ];
|
||||
|
||||
passthru.pluginPath = "lib/clapper-enhancers/plugins";
|
||||
|
||||
meta = {
|
||||
description = "Plugins enhancing Clapper library capabilities";
|
||||
homepage = "https://github.com/Rafostar/clapper-enhancers";
|
||||
license = lib.licenses.lgpl21Only;
|
||||
inherit (clapper-unwrapped.meta) maintainers platforms;
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue