From a833aefc2a94b2550e076ced9132b9b7b17df0e8 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Thu, 2 Jun 2022 10:09:10 +0000 Subject: [PATCH] buf: 1.4.0 -> 1.5.0 --- pkgs/development/tools/buf/default.nix | 14 +++++--------- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/development/tools/buf/default.nix b/pkgs/development/tools/buf/default.nix index 746233fb0dee..8fcc8bad2269 100644 --- a/pkgs/development/tools/buf/default.nix +++ b/pkgs/development/tools/buf/default.nix @@ -10,16 +10,16 @@ buildGoModule rec { pname = "buf"; - version = "1.4.0"; + version = "1.5.0"; src = fetchFromGitHub { owner = "bufbuild"; repo = pname; rev = "v${version}"; - sha256 = "sha256-cKb9pZYEsO1thgtl/8XFJHpNrO6P3OR8Lox/Gf9ccYk="; + sha256 = "sha256-Jcj1tpcG64mSVn444isGsK9AcITh171ibECukv3bXDI="; }; - vendorSha256 = "sha256-zXLvKEdiIFnmwWQBgbJHCEBe2i7FobgeUOnA3LvHl8w="; + vendorSha256 = "sha256-aHGV8UfPn7xsySPXRSzsEpcaz1Ll49Mj1S9izvaIRWY="; patches = [ # Skip a test that requires networking to be available to work. @@ -48,13 +48,9 @@ buildGoModule rec { runHook preInstall # Binaries - mkdir -p "$out/bin" # Only install required binaries, don't install testing binaries - for FILE in \ - "buf" \ - "protoc-gen-buf-breaking" \ - "protoc-gen-buf-lint"; do - cp "$GOPATH/bin/$FILE" "$out/bin/" + 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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 68c03ac3d468..37af1dcf3d59 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -262,7 +262,9 @@ with pkgs; breakpad = callPackage ../development/misc/breakpad { }; - buf = callPackage ../development/tools/buf { }; + buf = callPackage ../development/tools/buf { + buildGoModule = buildGo118Module; + }; cfn-nag = callPackage ../development/tools/cfn-nag { };