2022-02-10 20:34:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, darwin }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "webrtc-audio-processing";
|
|
|
|
version = "0.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/webrtc-audio-processing-${version}.tar.xz";
|
|
|
|
sha256 = "1gsx7k77blfy171b6g3m0k0s0072v6jcawhmx1kjs9w5zlwdkzd0";
|
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = [
|
|
|
|
./enable-riscv.patch
|
|
|
|
./enable-powerpc.patch
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices ]);
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
patchPhase = lib.optionalString stdenv.hostPlatform.isMusl ''
|
|
|
|
substituteInPlace webrtc/base/checks.cc --replace 'defined(__UCLIBC__)' 1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "More Linux packaging friendly copy of the AudioProcessing module from the WebRTC project";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.bsd3;
|
2024-05-15 15:35:15 +00:00
|
|
|
# https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/blob/v0.3.1/webrtc/typedefs.h
|
2023-03-15 16:39:30 +00:00
|
|
|
# + our patches
|
|
|
|
platforms = intersectLists platforms.unix (platforms.arm ++ platforms.aarch64 ++ platforms.mips ++ platforms.power ++ platforms.riscv ++ platforms.x86);
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|