openscad-unstable: add darwin specific tweaks (#387525)

* add darwin specific tweaks to openscad-unstable

---------

Co-authored-by: xiaodong.jia <xiaodong.jia@bytedance.com>
This commit is contained in:
Jia Xiaodong
2025-03-27 13:37:16 +00:00
committed by GitHub
co-authored by xiaodong.jia
parent 35a5901188
commit 20a803e6ba
+13 -1
View File
@@ -1,5 +1,6 @@
{
lib,
stdenv,
clangStdenv,
llvmPackages,
fetchFromGitHub,
@@ -124,9 +125,20 @@ clangStdenv.mkDerivation rec {
# IPO
"-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld"
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
# The sources enable this for only apple. We turn it off globally anyway to stay
# consistent.
"-DUSE_QT6=OFF"
];
doCheck = true;
# tests rely on sysprof which is not available on darwin
doCheck = !stdenv.hostPlatform.isDarwin;
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir $out/Applications
mv $out/bin/*.app $out/Applications
rmdir $out/bin
'';
nativeCheckInputs = [
mesa.llvmpipeHook