python312Packages.nanobind: fix building on x86_64-darwin (#356368)

This commit is contained in:
Pol Dellaiera 2024-11-17 20:40:39 +01:00 committed by GitHub
commit f0dccdf596
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,9 @@
{
lib,
stdenv,
apple-sdk_11,
buildPythonPackage,
darwinMinVersionHook,
fetchFromGitHub,
pythonOlder,
@ -46,6 +48,14 @@ buildPythonPackage rec {
];
dependencies = [ eigen ];
buildInputs = 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
];
dontUseCmakeBuildDir = true;
preCheck = ''