anchor.diff:        # override this path to a builtin one
         substituteInPlace \
           src/main/cpp/option_processor.cc \
  -        --replace BAZEL_SYSTEM_BAZELRC_PATH "\"$out/etc/bazelrc\""
  +        --replace BAZEL_SYSTEM_BAZELRC_PATH "\"${bazelRC}\""
       '';
       in lib.optionalString stdenv.hostPlatform.isDarwin darwinPatches
        + genericPatches;
  
positive.code: , autoPatchelfHook
  , file
  , substituteAll
  }:
  
  let
  
negative.code:     '';
    };
  
    bazelRC = writeTextFile {
      name = "bazel-rc";
      text = ''
        build --override_repository=${remote_java_tools.name}=${remote_java_tools}
        build --distdir=${distDir}
      '';
    };
  
  in
  stdenv.mkDerivation rec {
    pname = "bazel";
  