From 0d259f841b560acc1c5a2c9cbbd38614019bdba8 Mon Sep 17 00:00:00 2001
From: obadz <obadz-git@obadz.com>
Date: Sun, 31 Jul 2016 15:02:56 +0100
Subject: [PATCH] aws-sdk-cpp: add compile flag -fpermissive due to libcurl
 upgrade

curl upgrade to 7.50.0 (#17152) changes the libcurl headers slightly and
therefore requires the followin flag until this package gets updated
---
 pkgs/development/libraries/aws-sdk-cpp/default.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix
index 1848bd064f16..948cbacf8766 100644
--- a/pkgs/development/libraries/aws-sdk-cpp/default.nix
+++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix
@@ -23,6 +23,10 @@ stdenv.mkDerivation rec {
     ++ lib.optional (apis != ["*"])
       "-DBUILD_ONLY=${lib.concatMapStringsSep ";" (api: "aws-cpp-sdk-" + api) apis}";
 
+  # curl upgrade to 7.50.0 (#17152) changes the libcurl headers slightly and
+  # therefore requires the followin flag until this package gets updated
+  NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
+
   enableParallelBuilding = true;
 
   preBuild =