libfive: fix build on darwin

This commit is contained in:
Weijia Wang 2023-12-05 00:48:02 +01:00
parent 8e9dcabab7
commit 096b752393

View File

@ -61,6 +61,10 @@ stdenv.mkDerivation {
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=enum-constexpr-conversion";
};
postInstall = lib.optionalString stdenv.isDarwin ''
# No rules to install the mac app, so do it manually.
mkdir -p $out/Applications