git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitfe7c1cfdcc9c28ba9c154e7158c094b44d116507 authorSamuel Ainsworth <skainsworth@gmail.com> dateMon 19 Apr 2021, 22:59 (6 years ago) parent8651109
1 file changed+1−1
pkgs/development/libraries/mbedtls/default.nix+1−1
pkgs/development/libraries/mbedtls/default.nix+1−1
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
3434 '';
3535
3636 cmakeFlags = [ "-DUSE_SHARED_MBEDTLS_LIBRARY=on" ];
37− NIX_CFLAGS_COMPILE = [
37+ NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
3838 "-Wno-error=format"
3939 "-Wno-error=format-truncation"
4040 ];