2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
2022-02-10 20:34:41 +00:00
|
|
|
, darwin
|
2023-07-15 17:15:38 +00:00
|
|
|
, abseil-cpp
|
2022-02-10 20:34:41 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2023-10-09 19:29:22 +00:00
|
|
|
, pkg-config
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "webrtc-audio-processing";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "pulseaudio";
|
|
|
|
repo = "webrtc-audio-processing";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-8CDt4kMt2Owzyv22dqWIcFuHeg4Y3FxB405cLw3FZ+g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2023-10-09 19:29:22 +00:00
|
|
|
pkg-config
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
abseil-cpp
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices Foundation ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A more Linux packaging friendly copy of the AudioProcessing module from the WebRTC project";
|
|
|
|
license = licenses.bsd3;
|
2023-03-15 16:39:30 +00:00
|
|
|
# https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/blob/master/webrtc/rtc_base/system/arch.h
|
2023-10-09 19:29:22 +00:00
|
|
|
# x86-32 disabled due to https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/5
|
|
|
|
platforms = intersectLists platforms.unix (platforms.aarch64 ++ platforms.mips ++ platforms.riscv ++ platforms.x86_64);
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|