Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

76 lines
2.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
fetchpatch,
abseil-cpp,
meson,
ninja,
pkg-config,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "webrtc-audio-processing";
version = "2.1";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "pulseaudio";
repo = "webrtc-audio-processing";
tag = "v${finalAttrs.version}";
hash = "sha256-YR4ELukJgHMbfe80H+r8OiaZUCAqefGXmVOaTVVgOqA=";
};
patches = [
(fetchpatch {
name = "gcc-15-compat.patch";
url = "https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/commit/e9c78dc4712fa6362b0c839ad57b6b46dce1ba83.diff";
hash = "sha256-QXOtya7RA0UTV9VK4qpql5D8QcOKAn6qURZvPpWT+vg=";
})
# fix build with abseil 202508
# upstream PR: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/merge_requests/60
./abseil-202508.patch
];
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
meson
ninja
pkg-config
];
propagatedBuildInputs = [
abseil-cpp
];
mesonFlags =
lib.lists.optional (!stdenv.hostPlatform.isAarch64) "-Dneon=disabled"
++ lib.lists.optional (stdenv.hostPlatform.isi686) "-Dinline-sse=false";
passthru.tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
versionCheck = true;
};
meta = {
homepage = "https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing";
description = "More Linux packaging friendly copy of the AudioProcessing module from the WebRTC project";
pkgConfigModules = [ "webrtc-audio-processing-2" ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fzdslr ];
platforms =
with lib.platforms;
lib.intersectLists
# https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/blob/master/webrtc/rtc_base/system/arch.h
(arm ++ aarch64 ++ mips ++ power ++ riscv ++ x86 ++ loongarch64)
# https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/blob/master/meson.build
(linux ++ windows ++ freebsd ++ netbsd ++ openbsd ++ darwin);
};
})