rnnoise-plugin: split outputs (#407334)

Each output uses 5 to 17MiB, and most users only need one type of RNNoise plugin.
This commit is contained in:
nicoo
2025-05-15 13:56:09 +00:00
committed by GitHub
parent 0221c2641c
commit 3337c438c3
@@ -13,6 +13,13 @@
stdenv.mkDerivation rec {
pname = "rnnoise-plugin";
version = "1.10";
outputs = [
"out"
"ladspa"
"lv2"
"lxvst"
"vst3"
];
src = fetchFromGitHub {
owner = "werman";
@@ -43,6 +50,15 @@ stdenv.mkDerivation rec {
webkitgtk_4_0
];
# Move each plugin into a dedicated output, leaving a symlink in $out for backwards compatibility
postInstall = ''
for plugin in ladspa lv2 lxvst vst3; do
mkdir -p ''${!plugin}/lib
mv $out/lib/$plugin ''${!plugin}/lib/$plugin
ln -s ''${!plugin}/lib/$plugin $out/lib/$plugin
done
'';
meta = with lib; {
description = "Real-time noise suppression plugin for voice based on Xiph's RNNoise";
homepage = "https://github.com/werman/noise-suppression-for-voice";