2018-08-08 08:45:08 +01:00
|
|
|
{ stdenv, fetchurl, darwin }:
|
2015-04-25 23:08:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-08 08:45:08 +01:00
|
|
|
name = "webrtc-audio-processing-0.3.1";
|
2015-04-25 23:08:55 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/${name}.tar.xz";
|
2018-08-08 08:45:08 +01:00
|
|
|
sha256 = "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0";
|
2015-04-25 23:08:55 +01:00
|
|
|
};
|
|
|
|
|
2018-08-08 08:45:08 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices ]);
|
|
|
|
|
|
|
|
patchPhase = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
2018-01-13 19:17:11 +00:00
|
|
|
substituteInPlace webrtc/base/checks.cc --replace 'defined(__UCLIBC__)' 1
|
2016-07-09 23:35:00 +01:00
|
|
|
'';
|
|
|
|
|
2015-04-25 23:08:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing;
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A more Linux packaging friendly copy of the AudioProcessing module from the WebRTC project";
|
2015-04-25 23:08:55 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|