1 { lib, stdenv, fetchurl, darwin }:
3 stdenv.mkDerivation rec {
4 name = "webrtc-audio-processing-0.3.1";
7 url = "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/${name}.tar.xz";
8 sha256 = "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0";
11 buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices ]);
13 patchPhase = lib.optionalString stdenv.hostPlatform.isMusl ''
14 substituteInPlace webrtc/base/checks.cc --replace 'defined(__UCLIBC__)' 1
18 homepage = "http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing";
19 description = "A more Linux packaging friendly copy of the AudioProcessing module from the WebRTC project";
20 license = licenses.bsd3;
21 platforms = platforms.unix;