2020-11-12 09:05:59 +00:00
|
|
|
{ stdenv, rustPlatform, fetchFromGitHub, libiconv, xorg, python3, Security, AppKit }:
|
2020-05-03 17:38:23 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitui";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "0.10.1";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "extrawurst";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
sha256 = "1ifwbi6nydh66z6cprjmz2qvy9z52rj9jg2xf054i249gy955hah";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
cargoSha256 = "1454dn7k1fc4yxhbcmx0z3hj9d9srnlc2k1qp707h1vq46ib1rsf";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
nativeBuildInputs = [ python3 ];
|
|
|
|
buildInputs = [ ]
|
|
|
|
++ stdenv.lib.optional stdenv.isLinux xorg.libxcb
|
2020-11-12 09:05:59 +00:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security AppKit ];
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Blazing fast terminal-ui for git written in rust";
|
|
|
|
homepage = "https://github.com/extrawurst/gitui";
|
|
|
|
license = licenses.mit;
|
2020-10-16 20:44:37 +00:00
|
|
|
maintainers = with maintainers; [ filalex77 yanganto ];
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|