Merge pull request #311138 from TomaSajt/cinny_

cinny: fix build on x86_64-darwin
This commit is contained in:
Weijia Wang
2024-05-13 23:01:36 +02:00
committed by GitHub

View File

@@ -29,6 +29,11 @@ buildNpmPackage rec {
npmDepsHash = "sha256-4R+To2LhcnEM9x1noo6MhCckyBKgPWiAi7zgDqAmaN0="; 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 = [ nativeBuildInputs = [
jq jq
python3 python3