Unverified Commit 3337c438 authored by nicoo's avatar nicoo Committed by GitHub
Browse files

rnnoise-plugin: split outputs (#407334)

Each output uses 5 to 17MiB, and most users only need one type of RNNoise plugin.
parent 0221c264
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -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";