2022-02-02 03:15:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libiconv
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, xclip
|
|
|
|
, AppKit
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
2020-05-01 14:28:35 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gitui";
|
2023-09-05 05:55:33 +00:00
|
|
|
version = "0.24.2";
|
2020-05-01 14:28:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "extrawurst";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-09-05 05:55:33 +00:00
|
|
|
hash = "sha256-sqYG27TImVpsoG0PH5AQrAyFTHOXOJnWEqG9RxLbkLo=";
|
2020-05-01 14:28:35 +00:00
|
|
|
};
|
|
|
|
|
2023-09-05 05:55:33 +00:00
|
|
|
cargoHash = "sha256-Dlvr+lwCj68CSa2G2lc4dNShCfj56h9FqA9UZUOq+IQ=";
|
2022-02-02 03:15:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-05-01 14:28:35 +00:00
|
|
|
|
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 14:28:35 +00:00
|
|
|
|
2021-09-15 00:47:17 +00:00
|
|
|
# Needed to get openssl-sys to use pkg-config.
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
2022-11-19 18:13:04 +00:00
|
|
|
# The cargo config overrides linkers for some targets, breaking the build
|
|
|
|
# on e.g. `aarch64-linux`. These overrides are not required in the Nix
|
|
|
|
# environment: delete them.
|
|
|
|
postPatch = "rm .cargo/config";
|
|
|
|
|
2023-08-31 06:51:52 +00:00
|
|
|
|
|
|
|
# Getting app_config_path fails with a permission denied
|
|
|
|
checkFlags = [
|
|
|
|
"--skip=keys::key_config::tests::test_symbolic_links"
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-02-02 03:15:59 +00:00
|
|
|
description = "Blazing fast terminal-ui for Git written in Rust";
|
2020-05-01 14:28:35 +00:00
|
|
|
homepage = "https://github.com/extrawurst/gitui";
|
2023-06-19 21:32:22 +00:00
|
|
|
changelog = "https://github.com/extrawurst/gitui/blob/${version}/CHANGELOG.md";
|
2023-08-31 06:51:52 +00:00
|
|
|
mainProgram = "gitui";
|
2020-05-01 14:28:35 +00:00
|
|
|
license = licenses.mit;
|
2023-08-31 06:51:35 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne yanganto mfrw ];
|
2020-05-01 14:28:35 +00:00
|
|
|
};
|
|
|
|
}
|