2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, perl, python3, Security, AppKit, openssl, xclip }:
|
2020-05-01 07:28:35 -07:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitui";
|
2021-03-04 15:36:52 -08:00
|
|
|
version = "0.12.0";
|
2020-05-01 07:28:35 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "extrawurst";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-04 15:36:52 -08:00
|
|
|
sha256 = "1fcv9bxfv7f7ysmnqan9vdp2z3kvdb4h4zwbr0l3cs8kbapk713n";
|
2020-05-01 07:28:35 -07:00
|
|
|
};
|
|
|
|
|
2021-03-04 15:36:52 -08:00
|
|
|
cargoSha256 = "1mnh8jza8lkw5rgkx2bnnqvk9w7l9c2ab9hmfmgx049wn42ylb41";
|
2020-05-01 07:28:35 -07:00
|
|
|
|
2020-12-22 04:57:26 -08:00
|
|
|
nativeBuildInputs = [ python3 perl ];
|
|
|
|
buildInputs = [ openssl ]
|
2021-01-15 05:21:58 -08:00
|
|
|
++ lib.optional stdenv.isLinux xclip
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security AppKit ];
|
2020-05-01 07:28:35 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-05-01 07:28:35 -07:00
|
|
|
description = "Blazing fast terminal-ui for git written in rust";
|
|
|
|
homepage = "https://github.com/extrawurst/gitui";
|
|
|
|
license = licenses.mit;
|
2020-11-17 03:02:06 -08:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne yanganto ];
|
2020-05-01 07:28:35 -07:00
|
|
|
};
|
|
|
|
}
|