mumble: fix build (#80500)

gstqt5
Mario Rodas 2020-02-19 08:01:22 -05:00 committed by GitHub
parent 5ea19307fe
commit 7b73eefda8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -19,7 +19,9 @@ let
pname = overrides.type;
version = source.version;
patches = (source.patches or []) ++ optional jackSupport ./mumble-jack-support.patch;
patches = (source.patches or [])
++ optional jackSupport ./mumble-jack-support.patch
++ [ ./fix-rnnoise-argument.patch ];
nativeBuildInputs = [ pkgconfig python qt5.qmake ]
++ (overrides.nativeBuildInputs or [ ]);

View File

@ -0,0 +1,16 @@
nixpkgs has a more recent rnnoise than the one used by mumble, and rnnoise
changed the argument rnnoise_create[1],
[1] https://github.com/xiph/rnnoise/commit/231b9c02d14a74cb449a98004cb7a2cf1bdeca2f
--- old/src/mumble/AudioInput.cpp 2020-02-18 22:55:32.000000000 -0500
+++ new/src/mumble/AudioInput.cpp 2020-02-18 22:58:08.000000000 -0500
@@ -106,7 +106,7 @@
#endif
#ifdef USE_RNNOISE
- denoiseState = rnnoise_create();
+ denoiseState = rnnoise_create(NULL);
#endif
qWarning("AudioInput: %d bits/s, %d hz, %d sample", iAudioQuality, iSampleRate, iFrameSize);