mbedtls: fix x86_64-darwin build

The upgrade to 2.26.0 (https://github.com/NixOS/nixpkgs/pull/119838) required two new warning suppression flags for gcc. However these flags are not recognized by clang, and therefore the build was failing on x86_64-darwin.
This commit is contained in:
Samuel Ainsworth 2021-04-19 22:59:50 -07:00
parent 8651109424
commit fe7c1cfdcc

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
'';
cmakeFlags = [ "-DUSE_SHARED_MBEDTLS_LIBRARY=on" ];
NIX_CFLAGS_COMPILE = [
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
"-Wno-error=format"
"-Wno-error=format-truncation"
];