diff --git a/pkgs/by-name/la/lazygit/package.nix b/pkgs/by-name/la/lazygit/package.nix index 21dfd97f817b..6eef23e5b527 100644 --- a/pkgs/by-name/la/lazygit/package.nix +++ b/pkgs/by-name/la/lazygit/package.nix @@ -4,16 +4,17 @@ fetchFromGitHub, lazygit, testers, + nix-update-script, }: buildGoModule rec { pname = "lazygit"; - version = "0.48.0"; + version = "0.49.0"; src = fetchFromGitHub { owner = "jesseduffield"; repo = pname; tag = "v${version}"; - hash = "sha256-L3OcCkoSJZ6skzcjP2E3BrQ39cXyxcuHGthj8RHIGeQ="; + hash = "sha256-hNEznDz+DHalKgmz1fXFivf9T1YJ/jfwcD4baTUO4Cw="; }; vendorHash = null; @@ -24,7 +25,16 @@ buildGoModule rec { "-X main.buildSource=nix" ]; - passthru.tests.version = testers.testVersion { package = lazygit; }; + passthru = { + tests.version = testers.testVersion { package = lazygit; }; + + updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "^v([0-9.]+)$" + ]; + }; + }; meta = { description = "Simple terminal UI for git commands";