Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: buf 1.68.4 -> 1.69.0 https://repology.org/project/buf/versions attrpath: buf Checking auto update branch... No auto update branch exists Old version 1.68.4" not present in master derivation file with contents: { lib, buildGoModule, fetchFromGitHub, protobuf, git, testers, installShellFiles, }: buildGoModule (finalAttrs: { pname = "buf"; version = "1.69.0"; src = fetchFromGitHub { owner = "bufbuild"; repo = "buf"; tag = "v${finalAttrs.version}"; hash = "sha256-x8Dj4xl67Jq0ViWu+Tz+3lAnfIpE926dIr+oe4ul0gI="; }; vendorHash = "sha256-zhXpWpYd/bim5f4EQJujVm072LPgBusjCFGYAwK10HE="; patches = [ # Skip a test that requires networking to be available to work. ./skip_broken_tests.patch ]; nativeBuildInputs = [ installShellFiles ]; ldflags = [ "-s" "-w" ]; nativeCheckInputs = [ git # Required for TestGitCloner protobuf # Required for buftesting.GetProtocFilePaths ]; checkFlags = [ "-skip=TestWorkspaceGit" ]; preCheck = '' # Some tests take longer depending on builder load. substituteInPlace private/bufpkg/bufcheck/lint_test.go \ --replace-fail 'context.WithTimeout(t.Context(), 60*time.Second)' \ 'context.WithTimeout(t.Context(), 600*time.Second)' # For WebAssembly runtime tests GOOS=wasip1 GOARCH=wasm go build -o $GOPATH/bin/buf-plugin-suffix.wasm \ ./private/bufpkg/bufcheck/internal/cmd/buf-plugin-suffix # The tests need access to some of the built utilities export PATH="$PATH:$GOPATH/bin" ''; # Allow tests that bind or connect to localhost on macOS. __darwinAllowLocalNetworking = true; installPhase = '' runHook preInstall # Binaries # Only install required binaries, don't install testing binaries for FILE in buf protoc-gen-buf-breaking protoc-gen-buf-lint; do install -D -m 555 -t $out/bin $GOPATH/bin/$FILE done # Completions installShellCompletion --cmd buf \ --bash <($GOPATH/bin/buf completion bash) \ --fish <($GOPATH/bin/buf completion fish) \ --zsh <($GOPATH/bin/buf completion zsh) # Man Pages mkdir man && $GOPATH/bin/buf manpages man installManPage man/* runHook postInstall ''; passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; }; meta = { homepage = "https://buf.build"; changelog = "https://github.com/bufbuild/buf/releases/tag/v${finalAttrs.version}"; description = "Create consistent Protobuf APIs that preserve compatibility and comply with design best-practices"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ hythera jk lrewega ]; mainProgram = "buf"; }; })