anchor.diff:    ] ++ lib.optional (apis != ["*"])
       "-DBUILD_ONLY=${lib.concatStringsSep ";" apis}";
   
  -  # fix build with gcc9, can be removed after bumping to current version
  -  NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
  -
     # aws-cpp-sdk-core-tests/aws/client/AWSClientTest.cpp
     # seem to have a datarace
     enableParallelChecking = false;
  
positive.code:     license = licenses.asl20;
      platforms = platforms.unix;
      maintainers = with maintainers; [ eelco orivej ];
    };
  }
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "aws-sdk-cpp";
    version = "1.9.294";
  
    src = fetchFromGitHub {
      owner = "aws";
      repo = "aws-sdk-cpp";
      rev = version;
      sha256 = "sha256-Z1eRKW+8nVD53GkNyYlZjCcT74MqFqqRMeMc33eIQ9g=";
    };
  
    patches = [
      ./cmake-dirs.patch
    ];
  
    postPatch = ''
      # Missing includes for GCC11
  