aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/version-management/git-and-tools/gitui/default.nix
blob: 6aad5b78fb691ab3dbdf8b1b2736dbe8c5b9e2da (plain)
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
{ stdenv, rustPlatform, fetchFromGitHub, libiconv, xorg, python3, Security }:
rustPlatform.buildRustPackage rec {
  pname = "gitui";
  version = "0.10.1";

  src = fetchFromGitHub {
    owner = "extrawurst";
    repo = pname;
    rev = "v${version}";
    sha256 = "1ifwbi6nydh66z6cprjmz2qvy9z52rj9jg2xf054i249gy955hah";
  };

  cargoSha256 = "1454dn7k1fc4yxhbcmx0z3hj9d9srnlc2k1qp707h1vq46ib1rsf";

  nativeBuildInputs = [ python3 ];
  buildInputs = [ ]
    ++ stdenv.lib.optional stdenv.isLinux xorg.libxcb
    ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];

  meta = with stdenv.lib; {
    description = "Blazing fast terminal-ui for git written in rust";
    homepage = "https://github.com/extrawurst/gitui";
    license = licenses.mit;
    maintainers = with maintainers; [ filalex77 yanganto ];
  };
}