diff --git a/pkgs/by-name/tx/txtpbfmt/package.nix b/pkgs/by-name/tx/txtpbfmt/package.nix index 88c04d5803f8..3e2dba38d412 100644 --- a/pkgs/by-name/tx/txtpbfmt/package.nix +++ b/pkgs/by-name/tx/txtpbfmt/package.nix @@ -1,25 +1,37 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, +}: buildGoModule { pname = "txtpbfmt"; - version = "0-unstable-2024-06-11"; + version = "0-unstable-2024-11-12"; src = fetchFromGitHub { owner = "protocolbuffers"; repo = "txtpbfmt"; - rev = "dedd929c1c222fd4d895cda0e1c87b940262b1f5"; - hash = "sha256-L9btIjcQ3XMPzUrizoSEJ/Zj2xWphFAka3qtzm2mxP4="; + rev = "20d2c9ebc01daa87ca2b7b697a757613012b104d"; + hash = "sha256-gCGJQldwTa6Lq7Fvc4NAVRpmMs204qeKEsNFEjErTMA="; }; vendorHash = "sha256-IdD+R8plU4/e9fQaGSM5hJxyMECb6hED0Qg8afwHKbY="; - ldflags = [ "-s" "-w" ]; + ldflags = [ + "-s" + "-w" + ]; - meta = with lib; { + passthru.updateScript = nix-update-script { + extraArgs = [ "--version=branch" ]; + }; + + meta = { description = "Formatter for text proto files"; homepage = "https://github.com/protocolbuffers/txtpbfmt"; - license = licenses.asl20; - maintainers = with maintainers; [ aaronjheng ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ aaronjheng ]; mainProgram = "txtpbfmt"; }; }