python{313,314}Packages.matplotlib: work around ld64 hardening issue
This commit is contained in:
@@ -62,6 +62,9 @@
|
||||
|
||||
# Reverse dependency
|
||||
sage,
|
||||
|
||||
# TODO: Clean up on `staging`.
|
||||
llvmPackages,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -104,7 +107,12 @@ buildPythonPackage (finalAttrs: {
|
||||
--replace-fail libwayland-client.so.0 ${wayland}/lib/libwayland-client.so.0
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ] ++ lib.optionals enableGtk3 [ gobject-introspection ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
]
|
||||
++ lib.optionals enableGtk3 [ gobject-introspection ]
|
||||
# TODO: Clean up on `staging`.
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
|
||||
|
||||
buildInputs = [
|
||||
ffmpeg-headless
|
||||
@@ -160,6 +168,11 @@ buildPythonPackage (finalAttrs: {
|
||||
b_lto = false;
|
||||
};
|
||||
|
||||
# TODO: Clean up on `staging`.
|
||||
env.${if stdenv.hostPlatform.isDarwin then "CC_LD" else null} = "lld";
|
||||
env.${if stdenv.hostPlatform.isDarwin then "CXX_LD" else null} = "lld";
|
||||
env.${if stdenv.hostPlatform.isDarwin then "OBJC_LD" else null} = "lld";
|
||||
|
||||
passthru.tests = {
|
||||
inherit sage;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user