Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / lazygit / default.nix
blob97233ab11582476906559e1920e5011d23568f37
1 { lib, buildGoModule, fetchFromGitHub, lazygit, testers }:
3 buildGoModule rec {
4   pname = "lazygit";
5   version = "0.40.2";
7   src = fetchFromGitHub {
8     owner = "jesseduffield";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-xj5WKAduaJWA3NhWuMsF5EXF91+NTGAXkbdhpeFqLxE=";
12   };
14   vendorHash = null;
15   subPackages = [ "." ];
17   ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ];
19   passthru.tests.version = testers.testVersion {
20     package = lazygit;
21   };
23   meta = with lib; {
24     description = "Simple terminal UI for git commands";
25     homepage = "https://github.com/jesseduffield/lazygit";
26     changelog = "https://github.com/jesseduffield/lazygit/releases/tag/v${version}";
27     license = licenses.mit;
28     maintainers = with maintainers; [ Br1ght0ne equirosa paveloom ];
29     mainProgram = "lazygit";
30   };