summary refs log tree commit diff
path: root/pkgs/development/libraries/libopus
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-06-11 08:00:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2023-06-11 08:00:00 -0500
commit2da8e0eafce6a41f46bc9e1dcfb8dd27ba8e2438 (patch)
tree153a1e1bf65a71b2b02fb1029c16fbd3eb7b96aa /pkgs/development/libraries/libopus
parentb7d4899ad57e3cb0426796d49169e0437ea009d6 (diff)
downloadnixpkgs-2da8e0eafce6a41f46bc9e1dcfb8dd27ba8e2438.tar
nixpkgs-2da8e0eafce6a41f46bc9e1dcfb8dd27ba8e2438.tar.gz
nixpkgs-2da8e0eafce6a41f46bc9e1dcfb8dd27ba8e2438.tar.bz2
nixpkgs-2da8e0eafce6a41f46bc9e1dcfb8dd27ba8e2438.tar.lz
nixpkgs-2da8e0eafce6a41f46bc9e1dcfb8dd27ba8e2438.tar.xz
nixpkgs-2da8e0eafce6a41f46bc9e1dcfb8dd27ba8e2438.tar.zst
nixpkgs-2da8e0eafce6a41f46bc9e1dcfb8dd27ba8e2438.zip
libopus: fix build on aarch64-linux
Diffstat (limited to 'pkgs/development/libraries/libopus')
-rw-r--r--pkgs/development/libraries/libopus/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libopus/default.nix b/pkgs/development/libraries/libopus/default.nix
index 098b0b6ea84..75d8cdc6ff2 100644
--- a/pkgs/development/libraries/libopus/default.nix
+++ b/pkgs/development/libraries/libopus/default.nix
@@ -1,5 +1,6 @@
 { lib
 , stdenv
+, fetchpatch
 , fetchurl
 , meson
 , python3
@@ -17,6 +18,15 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-ybMrQlO+WuY9H/Fu6ga5S18PKVG3oCrO71jjo85JxR8=";
   };
 
+  patches = [
+    # Fix meson build for arm64. Remove with next release
+    # https://gitlab.xiph.org/xiph/opus/-/merge_requests/59
+    (fetchpatch {
+      url = "https://gitlab.xiph.org/xiph/opus/-/commit/20c032d27c59d65b19b8ffbb2608e5282fe817eb.patch";
+      hash = "sha256-2pX+0ay5PTyHL2plameBX2L1Q4aTx7V7RGiTdhNIuE4=";
+    })
+  ];
+
   postPatch = ''
     patchShebangs meson/
   '';