Merge pull request #72870 from nh2/mumble-rnnoise
Add RNNoise, use it in Mumble
This commit is contained in:
commit
b618df3225
@ -1,6 +1,7 @@
|
||||
{ stdenv, fetchurl, fetchFromGitHub, fetchpatch, pkgconfig, qt5
|
||||
, avahi, boost, libopus, libsndfile, protobuf, speex, libcap
|
||||
, alsaLib, python
|
||||
, rnnoise
|
||||
, jackSupport ? false, libjack2 ? null
|
||||
, speechdSupport ? false, speechd ? null
|
||||
, pulseSupport ? false, libpulseaudio ? null
|
||||
@ -73,7 +74,7 @@ let
|
||||
type = "mumble";
|
||||
|
||||
nativeBuildInputs = [ qt5.qttools ];
|
||||
buildInputs = [ libopus libsndfile speex qt5.qtsvg ]
|
||||
buildInputs = [ libopus libsndfile speex qt5.qtsvg rnnoise ]
|
||||
++ optional stdenv.isLinux alsaLib
|
||||
++ optional jackSupport libjack2
|
||||
++ optional speechdSupport speechd
|
||||
|
23
pkgs/development/libraries/rnnoise/default.nix
Normal file
23
pkgs/development/libraries/rnnoise/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
name = "rnnoise-${version}";
|
||||
version = "0.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xiph";
|
||||
repo = "rnnoise";
|
||||
rev = "91ef401f4c3536c6de999ac609262691ec888c4c";
|
||||
sha256 = "1h2ibg67gfcwnpvkq1rx0sngf9lk9j8pqsmsmmk5hclvrr2lp3yb";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://people.xiph.org/~jm/demo/rnnoise/;
|
||||
description = "Recurrent neural network for audio noise reduction.";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.nh2 ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
})
|
@ -6001,6 +6001,8 @@ in
|
||||
|
||||
rng-tools = callPackage ../tools/security/rng-tools { };
|
||||
|
||||
rnnoise = callPackage ../development/libraries/rnnoise { };
|
||||
|
||||
rnv = callPackage ../tools/text/xml/rnv { };
|
||||
|
||||
rounded-mgenplus = callPackage ../data/fonts/rounded-mgenplus { };
|
||||
|
Loading…
Reference in New Issue
Block a user