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