anchor.diff:  
     patches = [
       ./cmake-dirs.patch
  -
  -    # fix cmake config
  -    (fetchpatch {
  -      url = "https://github.com/aws/aws-sdk-cpp/commit/b102aaf5693c4165c84b616ab9ffb9edfb705239.diff";
  -      sha256 = "sha256-38QBo3MEFpyHPb8jZEURRPkoeu4DqWhVeErJayiHKF0=";
  -    })
     ];
   
     # Builds in 2+h with 2 cores, and ~10m with a big-parallel builder.
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "aws-sdk-cpp";
    version = "1.9.150";
  
    src = fetchFromGitHub {
      owner = "aws";
      repo = "aws-sdk-cpp";
      rev = version;
      sha256 = "sha256-fgLdXWQKHaCwulrw9KV3vpQ71DjnQAL4heIRW7Rk7UY=";
    };
  
    postPatch = ''
      # Flaky on Hydra
      rm aws-cpp-sdk-core-tests/aws/auth/AWSCredentialsProviderTest.cpp
      # Includes aws-c-auth private headers, so only works with submodule build
  
negative.code: { lib
  , stdenv
  , fetchFromGitHub
  , cmake
  , curl
  , openssl
  , s2n-tls
  , zlib
  , aws-crt-cpp
  , aws-c-cal
  , aws-c-common
  , aws-c-event-stream
  , aws-c-io
  , aws-checksums
  , CoreAudio
  , AudioToolbox
  , # Allow building a limited set of APIs, e.g. ["s3" "ec2"].
    apis ? ["*"]
  , # Whether to enable AWS' custom memory management.
  