From b6427439deead716ba4d178432b2a2e15304e40f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 13 Jan 2023 13:20:53 +0100 Subject: [PATCH] python3Packages.matplotlib: Disable strictoverflow hardening on darwin --- pkgs/development/python-modules/matplotlib/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index 79c842f6d3e..a033e8a11ba 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -45,6 +45,11 @@ buildPythonPackage rec { Cocoa ]; + # clang-11: error: argument unused during compilation: '-fno-strict-overflow' [-Werror,-Wunused-command-line-argument] + hardeningDisable = lib.optionals stdenv.isDarwin [ + "strictoverflow" + ]; + propagatedBuildInputs = [ certifi contourpy