anchor.diff: -{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, curl, openssl, s2n-tls, zlib
  +{ 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
  +, 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.
  
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: 
    patches = [
      ./cmake-dirs.patch
    ];
  
    # Builds in 2+h with 2 cores, and ~10m with a big-parallel builder.
  