root: fix Darwin build
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
patchRcPathPosix,
|
||||
onetbb,
|
||||
xrootd,
|
||||
freetype,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -117,7 +118,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
zlib
|
||||
zstd
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk.privateFrameworksHook ]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
apple-sdk.privateFrameworksHook
|
||||
freetype
|
||||
]
|
||||
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
libGLU
|
||||
libGL
|
||||
@@ -138,11 +142,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
patchShebangs cmake/unix/
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
# Eliminate impure reference to /System/Library/PrivateFrameworks
|
||||
substituteInPlace core/macosx/CMakeLists.txt \
|
||||
--replace-fail "-F/System/Library/PrivateFrameworks " ""
|
||||
''
|
||||
+
|
||||
lib.optionalString
|
||||
(stdenv.hostPlatform.isDarwin && lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11")
|
||||
|
||||
Reference in New Issue
Block a user