anchor.diff:    installPhase = ''
       runHook preInstall
   
  +    # Binaries
       mkdir -p "$out/bin"
       # Only install required binaries, don't install testing binaries
       for FILE in \
  
positive.code: , git
  , testVersion
  , buf
  }:
  
  buildGoModule rec {
    pname = "buf";
    version = "1.0.0-rc11";
  
    src = fetchFromGitHub {
      owner = "bufbuild";
      repo = pname;
      rev = "v${version}";
      sha256 = "sha256-V6xaGnSoKuJC59uZLW8uSLqwseJHvLGjrvhzE8o9fho=";
    };
    vendorSha256 = "sha256-442NHTREM2zC8VA7zAV35YSwX1lM/BXnx6p8a+avzps=";
  
    patches = [
      # Skip a test that requires networking to be available to work.
  
negative.code:       "protoc-gen-buf-lint"; do
        cp "$GOPATH/bin/$FILE" "$out/bin/"
      done
  
      # Completions
      installShellCompletion --cmd buf \
        --bash <($GOPATH/bin/buf bash-completion) \
        --fish <($GOPATH/bin/buf fish-completion) \
        --zsh <($GOPATH/bin/buf zsh-completion)
  
      # Man Pages
      mkdir man && $GOPATH/bin/buf manpages man
      installManPage man/*
  
      runHook postInstall
    '';
  