From 7d57438b809b2bed3f54d19a6fd0914870139616 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Fri, 18 Feb 2022 02:51:22 +0000 Subject: buf: 1.0.0-rc12 -> 1.0.0 --- pkgs/development/tools/buf/default.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/tools/buf/default.nix b/pkgs/development/tools/buf/default.nix index 67c132bd9e0..60d8d8f58b8 100644 --- a/pkgs/development/tools/buf/default.nix +++ b/pkgs/development/tools/buf/default.nix @@ -10,15 +10,16 @@ buildGoModule rec { pname = "buf"; - version = "1.0.0-rc12"; + version = "1.0.0"; src = fetchFromGitHub { owner = "bufbuild"; repo = pname; rev = "v${version}"; - sha256 = "sha256-UqyWQdlCDTSjW348f87W7g2kwB5nzIOviSE5/1T1soY="; + sha256 = "sha256-jJaob2eaozMFRsXwW6ulgM5De3UmpLZddTHwq6PnaeE="; }; - vendorSha256 = "sha256-qBgGZTok3G0Pgku76uiV9bZperhiSNoWSrzxrHe4QXw="; + + vendorSha256 = "sha256-wPnrkfv6pJB6tkZo2oeMbWHbF9njGh1ZEWu8tkHDhGo="; patches = [ # Skip a test that requires networking to be available to work. @@ -27,12 +28,15 @@ buildGoModule rec { ./skip_test_requiring_dotgit.patch ]; - nativeBuildInputs = [ protobuf installShellFiles ]; - # Required for TestGitCloner - checkInputs = [ git ]; + nativeBuildInputs = [ installShellFiles ]; ldflags = [ "-s" "-w" ]; + checkInputs = [ + git # Required for TestGitCloner + protobuf # Required for buftesting.GetProtocFilePaths + ]; + preCheck = '' # The tests need access to some of the built utilities export PATH="$PATH:$GOPATH/bin" @@ -55,9 +59,9 @@ buildGoModule rec { # Completions installShellCompletion --cmd buf \ - --bash <($GOPATH/bin/buf bash-completion) \ - --fish <($GOPATH/bin/buf fish-completion) \ - --zsh <($GOPATH/bin/buf zsh-completion) + --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 -- cgit 1.4.1