python3Packages.bezier: unbreak on Darwin

This commit is contained in:
Michael Daniels
2026-05-24 22:18:38 -04:00
parent 250e9be4d6
commit 3bb9a2d4e5
@@ -50,7 +50,12 @@ buildPythonPackage rec {
gfortran
];
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux "-z,noexecstack";
env = {
# -fmacro-prefix-map is not a valid option for Fortran.
# This is true on all platforms, but the flag only seems to be a problem on Darwin.
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-complain-wrong-lang";
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux "-z,noexecstack";
};
};
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=incompatible-pointer-types"