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

27 lines
739 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
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";
2021-02-25 11:52:38 +00:00
version = "0.25.1";
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}";
2021-02-25 11:52:38 +00:00
sha256 = "sha256-A4Nim1jnyMHd5hxyLu8oZkQ9nDWxTmaX/25WX714ry4=";
2018-10-11 15:17:57 +01:00
};
2020-09-18 12:52:57 +01:00
vendorSha256 = null;
subPackages = [ "." ];
buildFlagsArray = [ "-ldflags=-X main.version=${version} -X main.buildSource=nix" ];
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;
maintainers = with maintainers; [ fpletz equirosa Br1ght0ne ];
2018-10-11 15:17:57 +01:00
};
}