mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
python312Packages.nanobind: fix building on x86_64-darwin
https://hydra.nixos.org/build/278210451
(cherry picked from commit 8ad4f734c8
)
This commit is contained in:
parent
7937932921
commit
ff69f9830e
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user