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