Unverified Commit 8f19bfb0 authored by Austin Horstman's avatar Austin Horstman Committed by GitHub
Browse files

lazygit: 0.48.0 -> 0.49.0, add update script (#398527)

parents ca3ff6a0 574dfe9d
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -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";