about summary refs log tree commit diff
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2024-03-15 09:41:11 +0300
committerGitHub <noreply@github.com>2024-03-15 09:41:11 +0300
commit8ff5c2408cc890fcb2f5105f74189bf7079dfc8b (patch)
tree4e0d9e5800b27b04b024aea8d18a006d765015b4
parent2bcf18c64c66b95e17d9c8755104d33bc5103c63 (diff)
parentced2229f9ff00ced9935a471fec48ab2652c7fc2 (diff)
downloadnixlib-8ff5c2408cc890fcb2f5105f74189bf7079dfc8b.tar
nixlib-8ff5c2408cc890fcb2f5105f74189bf7079dfc8b.tar.gz
nixlib-8ff5c2408cc890fcb2f5105f74189bf7079dfc8b.tar.bz2
nixlib-8ff5c2408cc890fcb2f5105f74189bf7079dfc8b.tar.lz
nixlib-8ff5c2408cc890fcb2f5105f74189bf7079dfc8b.tar.xz
nixlib-8ff5c2408cc890fcb2f5105f74189bf7079dfc8b.tar.zst
nixlib-8ff5c2408cc890fcb2f5105f74189bf7079dfc8b.zip
Merge pull request #295678 from misuzu/webrtc-audio-processing-armv7l
webrtc-audio-processing_1: fix build on i686-linux & fix eval on armv7l-linux
-rw-r--r--pkgs/development/libraries/webrtc-audio-processing/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/libraries/webrtc-audio-processing/default.nix b/pkgs/development/libraries/webrtc-audio-processing/default.nix
index 1b847528550e..7e9fe3fa4a39 100644
--- a/pkgs/development/libraries/webrtc-audio-processing/default.nix
+++ b/pkgs/development/libraries/webrtc-audio-processing/default.nix
@@ -44,12 +44,18 @@ stdenv.mkDerivation rec {
 
   buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices Foundation ]);
 
+  env = lib.optionalAttrs stdenv.isx86_32 {
+    # https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/5
+    NIX_CFLAGS_COMPILE = "-msse2";
+  };
+
   meta = with lib; {
     homepage = "https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing";
     description = "A more Linux packaging friendly copy of the AudioProcessing module from the WebRTC project";
     license = licenses.bsd3;
-    # https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/blob/master/webrtc/rtc_base/system/arch.h
-    # 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);
+    platforms = platforms.unix;
+    # BE platforms are unsupported
+    # https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/31
+    badPlatforms = platforms.bigEndian;
   };
 }