anchor.diff:      sha256 = "1wa7n7mf20fnvxqw093kr7a4c7vilcmx9yl3hicnyfcd663jgqvd";
       fetchSubmodules = true;
     };
  +
     patches = [
       # Fix build on armv6l (https://github.com/grpc/grpc/pull/21341)
       (fetchpatch {
  
positive.code:   buildInputs = [ c-ares.cmake-config openssl protobuf ]
      ++ lib.optionals stdenv.isLinux [ libnsl ];
  
    cmakeFlags =
      [ "-DgRPC_ZLIB_PROVIDER=package"
        "-DgRPC_CARES_PROVIDER=package"
        "-DgRPC_RE2_PROVIDER=package"
        "-DgRPC_SSL_PROVIDER=package"
        "-DgRPC_PROTOBUF_PROVIDER=package"
        "-DgRPC_ABSL_PROVIDER=package"
        "-DBUILD_SHARED_LIBS=ON"
        "-DCMAKE_SKIP_BUILD_RPATH=OFF"
        "-DCMAKE_CXX_STANDARD=17"
      ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
        "-D_gRPC_PROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc"
      ];
  
    # CMake creates a build directory by default, this conflicts with the
    # basel BUILD file on case-insensitive filesystems.
  
negative.code: }:
  
  stdenv.mkDerivation rec {
    pname = "grpc";
    version = "1.39.0"; # N.B: if you change this, change pythonPackages.grpcio-tools to a matching version too
  
    src = fetchFromGitHub {
      owner = "grpc";
      repo = "grpc";
  