casacore: fix build on darwin

This commit is contained in:
Moraxyc
2026-05-20 08:43:28 +08:00
parent 4e39fb70d8
commit ec39d13c2b
+4
View File
@@ -101,6 +101,10 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "PORTABLE" true)
(lib.cmakeBool "USE_PCH" false)
(lib.cmakeBool "BUILD_FFTPACK_DEPRECATED" true) # Needed for casacpp
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Upstream probes this flag, but it fails on darwin, so pass it explicitly
(lib.cmakeFeature "CMAKE_Fortran_FLAGS" "-fallow-argument-mismatch")
];
meta = {