2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lazygit,
|
|
|
|
testers,
|
|
|
|
}:
|
2020-09-25 04:45:31 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "lazygit";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.43.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jesseduffield";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-iFx/ffaijhOqEDRW1QVzhQMvSgnS4lKFOzq1YdlkUzc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
vendorHash = null;
|
2020-09-25 04:45:31 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
"-X main.buildSource=nix"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = lazygit; };
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple terminal UI for git commands";
|
|
|
|
homepage = "https://github.com/jesseduffield/lazygit";
|
2020-12-29 15:07:52 +00:00
|
|
|
changelog = "https://github.com/jesseduffield/lazygit/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
Br1ght0ne
|
|
|
|
equirosa
|
|
|
|
paveloom
|
|
|
|
starsep
|
|
|
|
];
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "lazygit";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|