From f9b4435b5ae39fa56aa88e363d468252a2b13f2f Mon Sep 17 00:00:00 2001 From: Zhong Jianxin Date: Wed, 27 Nov 2024 20:56:12 +0800 Subject: [PATCH] python312Packages.soxr: fix build on x86_64-darwin --- pkgs/development/python-modules/soxr/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/soxr/default.nix b/pkgs/development/python-modules/soxr/default.nix index 9095dcb7ae7f5..14b8ff40533ac 100644 --- a/pkgs/development/python-modules/soxr/default.nix +++ b/pkgs/development/python-modules/soxr/default.nix @@ -1,8 +1,11 @@ { lib, + apple-sdk_11, buildPythonPackage, + darwinMinVersionHook, fetchFromGitHub, pythonOlder, + stdenv, # build-system cmake, @@ -60,7 +63,13 @@ buildPythonPackage rec { typing-extensions ]; - buildInputs = [ libsoxr ]; + buildInputs = + [ libsoxr ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer + (darwinMinVersionHook "10.13") + apple-sdk_11 + ]; dependencies = [ numpy ];