2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, perl, python3, Security, AppKit, openssl, xclip }:
|
2020-05-03 17:38:23 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitui";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "0.15.0";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "extrawurst";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "sha256-KJXYkOHR50Zap0Ou+jVi09opHuZBfHN/ToZbasZ3IE4=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
cargoSha256 = "sha256-N6Yr+TqxWwl/6SgjizIyZJoVsjn/R9yjxUKCqwt8UJg=";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
nativeBuildInputs = [ python3 perl ];
|
|
|
|
buildInputs = [ openssl ]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optional stdenv.isLinux xclip
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv Security AppKit ];
|
2020-05-03 17:38:23 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-03 17:38:23 +00:00
|
|
|
description = "Blazing fast terminal-ui for git written in rust";
|
|
|
|
homepage = "https://github.com/extrawurst/gitui";
|
|
|
|
license = licenses.mit;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne yanganto ];
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|