1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "lazygit";
5 version = "0.38.2";
6
7 src = fetchFromGitHub {
8 owner = "jesseduffield";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-HxOM2M2EoeM0IHCrFQqLdP9Rai6DbC1uRG0CiQyqRdE=";
12 };
13
14 vendorHash = null;
15 subPackages = [ "." ];
16
17 ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ];
18
19 meta = with lib; {
20 description = "Simple terminal UI for git commands";
21 homepage = "https://github.com/jesseduffield/lazygit";
22 changelog = "https://github.com/jesseduffield/lazygit/releases/tag/v${version}";
23 license = licenses.mit;
24 maintainers = with maintainers; [ equirosa Br1ght0ne ];
25 };
26}