nixpkgs/pkgs/applications/version-management/git-and-tools/gitui/default.nix

27 lines
843 B
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, perl, python3, Security, AppKit, openssl, xclip }:
2020-05-01 14:28:35 +00:00
rustPlatform.buildRustPackage rec {
pname = "gitui";
2021-09-14 09:15:23 +00:00
version = "0.17.1";
2020-05-01 14:28:35 +00:00
src = fetchFromGitHub {
owner = "extrawurst";
repo = pname;
rev = "v${version}";
2021-09-14 09:15:23 +00:00
sha256 = "sha256-dRHlbxNV4nS50WbJP5lD1zB7NkZmv7nlPUm3RlQIBtc=";
2020-05-01 14:28:35 +00:00
};
2021-09-14 09:15:23 +00:00
cargoSha256 = "sha256-9uRvxax0SrvRkD89mbZPxsfRItde11joA/ZgnXK9XBE=";
2020-05-01 14:28:35 +00:00
2020-12-22 12:57:26 +00:00
nativeBuildInputs = [ python3 perl ];
buildInputs = [ openssl ]
2021-01-15 13:21:58 +00:00
++ lib.optional stdenv.isLinux xclip
++ lib.optionals stdenv.isDarwin [ libiconv Security AppKit ];
2020-05-01 14:28:35 +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;
maintainers = with maintainers; [ Br1ght0ne yanganto ];
2020-05-01 14:28:35 +00:00
};
}