diff --git a/pkgs/development/libraries/webrtc-audio-processing/0.3.nix b/pkgs/development/libraries/webrtc-audio-processing/0.3.nix index a3efc646d319..c9141b34a94d 100644 --- a/pkgs/development/libraries/webrtc-audio-processing/0.3.nix +++ b/pkgs/development/libraries/webrtc-audio-processing/0.3.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, darwin }: +{ lib, stdenv, fetchurl, fetchpatch, darwin }: stdenv.mkDerivation rec { pname = "webrtc-audio-processing"; @@ -14,6 +14,12 @@ stdenv.mkDerivation rec { patches = [ ./enable-riscv.patch ./enable-powerpc.patch + # big-endian support, from https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/127 + (fetchpatch { + name = "0001-webrtc-audio-processing-big-endian.patch"; + url = "https://gitlab.freedesktop.org/pulseaudio/pulseaudio/uploads/2994c0512aaa76ebf41ce11c7b9ba23e/webrtc-audio-processing-0.2-big-endian.patch"; + hash = "sha256-zVAj9H8SJureQd0t5O5v1je4ia8/gHJOXYxuEBEB6gg="; + }) ]; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices ]); @@ -22,6 +28,8 @@ stdenv.mkDerivation rec { substituteInPlace webrtc/base/checks.cc --replace 'defined(__UCLIBC__)' 1 ''; + enableParallelBuilding = true; + meta = with lib; { homepage = "https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing"; description = "More Linux packaging friendly copy of the AudioProcessing module from the WebRTC project";