summary refs log tree commit diff
path: root/pkgs/development/tools/lazygit/default.nix
blob: 87571f1fcbb7d2f7672c8a6b61452a118a6ad0c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  name = "lazygit-${version}";
  version = "0.4";

  goPackagePath = "github.com/jesseduffield/lazygit";

  src = fetchFromGitHub {
    owner = "jesseduffield";
    repo = "lazygit";
    rev = "v${version}";
    sha256 = "0piljnwv778z7zc1pglkidiys1a3yv4d7z9wsrcj1nszlcn3ifyz";
  };

  postPatch = ''
    rm -rf scripts
  '';

  meta = with stdenv.lib; {
    inherit (src.meta) homepage;
    description = "Simple terminal UI for git commands";
    license = licenses.mit;
    maintainers = with stdenv.lib.maintainers; [ fpletz ];
    platforms = stdenv.lib.platforms.unix;
  };
}