diff --git a/pkgs/development/python-modules/jaxlib/default.nix b/pkgs/development/python-modules/jaxlib/default.nix index 137d9b39e510..c2c06e7385bc 100644 --- a/pkgs/development/python-modules/jaxlib/default.nix +++ b/pkgs/development/python-modules/jaxlib/default.nix @@ -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 \