angle: fix dylib path names on darwin
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
pciutils,
|
||||
libGL,
|
||||
apple-sdk_15,
|
||||
fixDarwinDylibNames,
|
||||
xcbuild,
|
||||
}:
|
||||
let
|
||||
@@ -68,6 +69,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
llvmPackages.bintools
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
fixDarwinDylibNames
|
||||
xcbuild
|
||||
];
|
||||
|
||||
@@ -100,6 +102,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"treat_warnings_as_errors=false"
|
||||
];
|
||||
|
||||
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-headerpad_max_install_names";
|
||||
|
||||
patches = [
|
||||
# https://issues.chromium.org/issues/432275627
|
||||
# https://chromium-review.googlesource.com/c/chromium/src/+/6761936/2/build/config/compiler/BUILD.gn
|
||||
@@ -175,6 +179,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
install_name_tool \
|
||||
-change ./libGLESv2.dylib \
|
||||
$out/lib/libGLESv2.dylib \
|
||||
$out/lib/libGLESv1_CM.dylib
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android";
|
||||
longDescription = ''
|
||||
|
||||
Reference in New Issue
Block a user