diff --git a/pkgs/development/python-modules/webrtc-noise-gain/0001-fix-missing-cstdint-include.patch b/pkgs/development/python-modules/webrtc-noise-gain/0001-fix-missing-cstdint-include.patch new file mode 100644 index 000000000000..7417ae253e6f --- /dev/null +++ b/pkgs/development/python-modules/webrtc-noise-gain/0001-fix-missing-cstdint-include.patch @@ -0,0 +1,24 @@ +From 54b34a4a58d305ad9f40aceaf333486bc4e59706 Mon Sep 17 00:00:00 2001 +From: Alex Martens +Date: Tue, 7 Apr 2026 19:56:25 -0700 +Subject: [PATCH] Fix missing cstdint include in task_queue_base.h + +--- + .../webrtc-audio-processing-1/api/task_queue/task_queue_base.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/webrtc-audio-processing/webrtc-audio-processing-1/api/task_queue/task_queue_base.h b/webrtc-audio-processing/webrtc-audio-processing-1/api/task_queue/task_queue_base.h +index 90b1efd..7403ee9 100644 +--- a/webrtc-audio-processing/webrtc-audio-processing-1/api/task_queue/task_queue_base.h ++++ b/webrtc-audio-processing/webrtc-audio-processing-1/api/task_queue/task_queue_base.h +@@ -11,6 +11,7 @@ + #define API_TASK_QUEUE_TASK_QUEUE_BASE_H_ + + #include ++#include + + #include "api/task_queue/queued_task.h" + #include "rtc_base/system/rtc_export.h" +-- +2.53.0 + diff --git a/pkgs/development/python-modules/webrtc-noise-gain/default.nix b/pkgs/development/python-modules/webrtc-noise-gain/default.nix index 2e6cb401617d..1e670751958b 100644 --- a/pkgs/development/python-modules/webrtc-noise-gain/default.nix +++ b/pkgs/development/python-modules/webrtc-noise-gain/default.nix @@ -27,6 +27,10 @@ buildPythonPackage rec { hash = "sha256-GbdG2XM11zgPk2VZ0mu7qMv256jaMyJDHdBCBUnynMY="; }; + patches = [ + ./0001-fix-missing-cstdint-include.patch + ]; + postPatch = with stdenv.hostPlatform.uname; '' # Configure the correct host platform for cross builds substituteInPlace setup.py --replace-fail \