Skip to content

Commit

Permalink
python312Packages.soxr: fix build on x86_64-darwin (#359539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrumplex authored Nov 28, 2024
2 parents d8791f8 + f9b4435 commit 8c5c3e5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/development/python-modules/soxr/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
lib,
apple-sdk_11,
buildPythonPackage,
darwinMinVersionHook,
fetchFromGitHub,
pythonOlder,
stdenv,

# build-system
cmake,
Expand Down Expand Up @@ -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 ];

Expand Down

0 comments on commit 8c5c3e5

Please sign in to comment.