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