3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/git-and-tools/gitui/default.nix

30 lines
941 B
Nix
Raw Normal View History

2021-09-15 01:47:17 +01:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, perl, python3, Security, AppKit, openssl, xclip, pkg-config }:
2020-05-01 15:28:35 +01:00
rustPlatform.buildRustPackage rec {
pname = "gitui";
2021-10-15 12:21:05 +01:00
version = "0.18.0";
2020-05-01 15:28:35 +01:00
src = fetchFromGitHub {
owner = "extrawurst";
repo = pname;
rev = "v${version}";
2021-10-15 12:21:05 +01:00
sha256 = "sha256-NzE2eT3QxnbDW63Cnv6M7IlYgb2XuymphwaL1PTfcyQ=";
2020-05-01 15:28:35 +01:00
};
2021-10-15 12:21:05 +01:00
cargoSha256 = "sha256-9SWovdjYfeneqOVl+I+tuJTIC/htC7h1tXi2KUbdYb8=";
2020-05-01 15:28:35 +01:00
2021-09-15 01:47:17 +01:00
nativeBuildInputs = [ python3 perl pkg-config ];
2020-12-22 12:57:26 +00:00
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 15:28:35 +01:00
2021-09-15 01:47:17 +01:00
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
meta = with lib; {
2020-05-01 15:28:35 +01: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 15:28:35 +01:00
};
}