diff --git a/pkgs/by-name/bu/buf/package.nix b/pkgs/by-name/bu/buf/package.nix index eb93cae6c90d..b5bf7fd05713 100644 --- a/pkgs/by-name/bu/buf/package.nix +++ b/pkgs/by-name/bu/buf/package.nix @@ -5,18 +5,17 @@ protobuf, git, testers, - buf, installShellFiles, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "buf"; version = "1.55.1"; src = fetchFromGitHub { owner = "bufbuild"; repo = "buf"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-41IY2P2s9kCV6aQh5vg7xVmu4Ovl9gakGmgcI/QSwfw="; }; @@ -81,11 +80,11 @@ buildGoModule rec { runHook postInstall ''; - passthru.tests.version = testers.testVersion { package = buf; }; + passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; }; meta = { homepage = "https://buf.build"; - changelog = "https://github.com/bufbuild/buf/releases/tag/v${version}"; + 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; [ @@ -95,4 +94,4 @@ buildGoModule rec { ]; mainProgram = "buf"; }; -} +})