summary refs log tree commit diff
path: root/pkgs/development/libraries/mbedtls
diff options
context:
space:
mode:
authorSamuel Ainsworth <skainsworth@gmail.com>2021-04-19 22:59:50 -0700
committerSamuel Ainsworth <skainsworth@gmail.com>2021-04-19 22:59:50 -0700
commitfe7c1cfdcc9c28ba9c154e7158c094b44d116507 (patch)
tree0651c0bde2dc0ac928529880a563ea9b6e1e3807 /pkgs/development/libraries/mbedtls
parent865110942454456f0a627eef6f3d59c5c8e7b2eb (diff)
downloadnixpkgs-fe7c1cfdcc9c28ba9c154e7158c094b44d116507.tar
nixpkgs-fe7c1cfdcc9c28ba9c154e7158c094b44d116507.tar.gz
nixpkgs-fe7c1cfdcc9c28ba9c154e7158c094b44d116507.tar.bz2
nixpkgs-fe7c1cfdcc9c28ba9c154e7158c094b44d116507.tar.lz
nixpkgs-fe7c1cfdcc9c28ba9c154e7158c094b44d116507.tar.xz
nixpkgs-fe7c1cfdcc9c28ba9c154e7158c094b44d116507.tar.zst
nixpkgs-fe7c1cfdcc9c28ba9c154e7158c094b44d116507.zip
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.
Diffstat (limited to 'pkgs/development/libraries/mbedtls')
-rw-r--r--pkgs/development/libraries/mbedtls/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/mbedtls/default.nix b/pkgs/development/libraries/mbedtls/default.nix
index 057e8694529..90e2c9bd9a7 100644
--- a/pkgs/development/libraries/mbedtls/default.nix
+++ b/pkgs/development/libraries/mbedtls/default.nix
@@ -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"
   ];