python310Packages.opuslib: fix on aarch64-darwin

Pull in patch that fixes calling variadic functions on aarch64-darwin.
This commit is contained in:
Theodore Ni 2022-09-23 14:18:29 -07:00
parent 36002dd590
commit 4aedfa3fc1
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,5 +1,6 @@
{ buildPythonPackage,
fetchFromGitHub,
fetchpatch,
isPy27,
libopus,
nose,
@ -21,6 +22,12 @@ buildPythonPackage rec {
};
patches = [
# https://github.com/orion-labs/opuslib/pull/22
(fetchpatch {
name = "fix-variadic-functions-on-aarch64-darwin.patch";
url = "https://github.com/orion-labs/opuslib/commit/8aee916e4da4b3183d49cff5a986dc2408076d8d.patch";
hash = "sha256-oa1HCFHNS3ejzSf0jxv9NueUKOZgdCtpv+xTrjYW5os=";
})
(substituteAll {
src = ./opuslib-paths.patch;
opusLibPath = "${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}";