12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
20 hash = "sha256-j3y+KjC+o9p2omf4bN8+XevwU7WqiaQ0sfPqHySD2ik=";
23 cargoHash = "sha256-vVEo0kSghOQsH3T6ZTAzN7gIUku0n7rDbKwNmOM9GZc=";
25 nativeBuildInputs = [ pkg-config ];
27 buildInputs = [ openssl ]
28 ++ lib.optional stdenv.hostPlatform.isLinux xclip
29 ++ lib.optionals stdenv.hostPlatform.isDarwin [
31 darwin.apple_sdk.frameworks.Security
32 darwin.apple_sdk.frameworks.AppKit
36 # The cargo config overrides linkers for some targets, breaking the build
37 # on e.g. `aarch64-linux`. These overrides are not required in the Nix
38 # environment: delete them.
41 # build script tries to get version information from git
43 substituteInPlace Cargo.toml --replace-fail 'build = "build.rs"' ""
46 GITUI_BUILD_NAME = version;
47 # Needed to get openssl-sys to use pkg-config.
48 OPENSSL_NO_VENDOR = 1;
50 # Getting app_config_path fails with a permission denied
52 "--skip=keys::key_config::tests::test_symbolic_links"
56 description = "Blazing fast terminal-ui for Git written in Rust";
57 homepage = "https://github.com/extrawurst/gitui";
58 changelog = "https://github.com/extrawurst/gitui/blob/v${version}/CHANGELOG.md";
59 mainProgram = "gitui";
60 license = lib.licenses.mit;
61 maintainers = with lib.maintainers; [ Br1ght0ne yanganto mfrw ];