Unverified Commit 4aedfa3f authored by Theodore Ni's avatar Theodore Ni
Browse files

python310Packages.opuslib: fix on aarch64-darwin

Pull in patch that fixes calling variadic functions on aarch64-darwin.
parent 36002dd5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
{ 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}";