python3Packages.jaxlib: clean up apple_sdk stubs
Note: jaxlib currently points to jaxlib-bin so this code is not utilized for regular jaxlib installations. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
parent
2ea4434e0b
commit
d1ee8a7901
@ -15,7 +15,6 @@
|
||||
cython,
|
||||
fetchFromGitHub,
|
||||
git,
|
||||
darwin,
|
||||
jsoncpp,
|
||||
nsync,
|
||||
openssl,
|
||||
@ -409,10 +408,8 @@ let
|
||||
);
|
||||
|
||||
# Note: we cannot do most of this patching at `patch` phase as the deps
|
||||
# are not available yet. Framework search paths aren't added by bintools
|
||||
# hook. See https://github.com/NixOS/nixpkgs/pull/41914.
|
||||
# are not available yet.
|
||||
preBuild = lib.optionalString effectiveStdenv.hostPlatform.isDarwin ''
|
||||
export NIX_LDFLAGS+=" -F${darwin.apple_sdk.frameworks.IOKit}/Library/Frameworks"
|
||||
substituteInPlace ../output/external/rules_cc/cc/private/toolchain/osx_cc_wrapper.sh.tpl \
|
||||
--replace "/usr/bin/install_name_tool" "${cctools}/bin/install_name_tool"
|
||||
substituteInPlace ../output/external/rules_cc/cc/private/toolchain/unix_cc_configure.bzl \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user