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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user