diff --git a/pkgs/development/libraries/rnnoise-plugin/default.nix b/pkgs/development/libraries/rnnoise-plugin/default.nix new file mode 100644 index 000000000000..efc8857e235e --- /dev/null +++ b/pkgs/development/libraries/rnnoise-plugin/default.nix @@ -0,0 +1,25 @@ +{ stdenv, SDL2, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + pname = "rnnoise-plugin"; + version = "0.9"; + + src = fetchFromGitHub { + owner = "werman"; + repo = "noise-suppression-for-voice"; + rev = "v${version}"; + sha256 = "18bq5b50xw3d4r1ildinafpg3isb9y216430h4mm9wr3ir7h76a7"; + }; + + buildInputs = [ cmake ]; + + cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ]; + + meta = with stdenv.lib; { + description = "A real-time noise suppression plugin for voice based on Xiph's RNNoise"; + homepage = "https://github.com/werman/noise-suppression-for-voice"; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ panaeon ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5e397bf15562..ad556bc9aca7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6446,6 +6446,8 @@ in rnnoise = callPackage ../development/libraries/rnnoise { }; + rnnoise-plugin = callPackage ../development/libraries/rnnoise-plugin {}; + rnv = callPackage ../tools/text/xml/rnv { }; rosie = callPackage ../tools/text/rosie { };