cinny: fix build on x86_64-darwin

This commit is contained in:
TomaSajt 2024-05-12 20:21:49 +02:00
parent 9f7053ffc1
commit 6dfc689e95
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -29,6 +29,11 @@ buildNpmPackage rec {
npmDepsHash = "sha256-4R+To2LhcnEM9x1noo6MhCckyBKgPWiAi7zgDqAmaN0=";
# Fix error: no member named 'aligned_alloc' in the global namespace
env.NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0"
) "-D_LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION=1";
nativeBuildInputs = [
jq
python3