Skip to content

Commit 3337c43

Browse files
rnnoise-plugin: split outputs (#407334)
Each output uses 5 to 17MiB, and most users only need one type of RNNoise plugin.
1 parent 0221c26 commit 3337c43

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pkgs/by-name/rn/rnnoise-plugin/package.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
stdenv.mkDerivation rec {
1414
pname = "rnnoise-plugin";
1515
version = "1.10";
16+
outputs = [
17+
"out"
18+
"ladspa"
19+
"lv2"
20+
"lxvst"
21+
"vst3"
22+
];
1623

1724
src = fetchFromGitHub {
1825
owner = "werman";
@@ -43,6 +50,15 @@ stdenv.mkDerivation rec {
4350
webkitgtk_4_0
4451
];
4552

53+
# Move each plugin into a dedicated output, leaving a symlink in $out for backwards compatibility
54+
postInstall = ''
55+
for plugin in ladspa lv2 lxvst vst3; do
56+
mkdir -p ''${!plugin}/lib
57+
mv $out/lib/$plugin ''${!plugin}/lib/$plugin
58+
ln -s ''${!plugin}/lib/$plugin $out/lib/$plugin
59+
done
60+
'';
61+
4662
meta = with lib; {
4763
description = "Real-time noise suppression plugin for voice based on Xiph's RNNoise";
4864
homepage = "https://github.com/werman/noise-suppression-for-voice";

0 commit comments

Comments
 (0)