python312Packages.soxr: fix build on x86_64-darwin (#359539)

This commit is contained in:
Sefa Eyeoglu
2024-11-28 18:24:15 +01:00
committed by GitHub
@@ -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 ];