at 24.05-pre 847 B view raw
1{ lib, buildGoModule, fetchFromGitHub, lazygit, testers }: 2 3buildGoModule rec { 4 pname = "lazygit"; 5 version = "0.40.2"; 6 7 src = fetchFromGitHub { 8 owner = "jesseduffield"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-xj5WKAduaJWA3NhWuMsF5EXF91+NTGAXkbdhpeFqLxE="; 12 }; 13 14 vendorHash = null; 15 subPackages = [ "." ]; 16 17 ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ]; 18 19 passthru.tests.version = testers.testVersion { 20 package = lazygit; 21 }; 22 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 }; 31}