nixpkgs/pkgs/development/tools/lazygit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
847 B
Nix
Raw Normal View History

2023-09-18 19:58:14 +00:00
{ lib, buildGoModule, fetchFromGitHub, lazygit, testers }:
2018-10-11 14:17:57 +00:00
2020-09-18 11:52:57 +00:00
buildGoModule rec {
2019-06-23 17:09:11 +00:00
pname = "lazygit";
2023-08-07 14:33:12 +00:00
version = "0.40.2";
2019-06-23 17:09:11 +00:00
2018-10-11 14:17:57 +00:00
src = fetchFromGitHub {
owner = "jesseduffield";
2019-06-23 17:09:11 +00:00
repo = pname;
2018-10-11 14:17:57 +00:00
rev = "v${version}";
2023-08-07 14:33:12 +00:00
hash = "sha256-xj5WKAduaJWA3NhWuMsF5EXF91+NTGAXkbdhpeFqLxE=";
2018-10-11 14:17:57 +00:00
};
2023-05-04 02:33:13 +00:00
vendorHash = null;
2020-09-18 11:52:57 +00:00
subPackages = [ "." ];
2021-08-26 06:45:51 +00:00
ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ];
2020-09-18 11:52:57 +00:00
2023-09-18 19:58:14 +00:00
passthru.tests.version = testers.testVersion {
package = lazygit;
};
meta = with lib; {
2018-10-11 14:17:57 +00:00
description = "Simple terminal UI for git commands";
2019-06-23 17:09:11 +00:00
homepage = "https://github.com/jesseduffield/lazygit";
changelog = "https://github.com/jesseduffield/lazygit/releases/tag/v${version}";
2018-10-11 14:17:57 +00:00
license = licenses.mit;
2023-07-24 11:52:48 +00:00
maintainers = with maintainers; [ Br1ght0ne equirosa paveloom ];
2023-08-08 01:35:02 +00:00
mainProgram = "lazygit";
2018-10-11 14:17:57 +00:00
};
}