lazygit: 0.48.0 -> 0.49.0, add update script

This commit is contained in:
Zexin Yuan
2025-04-14 17:32:23 +08:00
parent 785eec1b92
commit 574dfe9d3a
+13 -3
View File
@@ -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";