From 4aedfa3fc19bf75744fc3d2e57e3efa165ba88ce Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Fri, 23 Sep 2022 14:18:29 -0700 Subject: [PATCH] python310Packages.opuslib: fix on aarch64-darwin Pull in patch that fixes calling variadic functions on aarch64-darwin. --- pkgs/development/python-modules/opuslib/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/opuslib/default.nix b/pkgs/development/python-modules/opuslib/default.nix index 79583ee926f6..a9c33f5abab4 100644 --- a/pkgs/development/python-modules/opuslib/default.nix +++ b/pkgs/development/python-modules/opuslib/default.nix @@ -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}";