{ lib, rustPlatform, fetchFromGitHub, pkg-config, libgit2, openssl, zlib, git, }: rustPlatform.buildRustPackage rec { pname = "gitu"; version = "0.37.0"; src = fetchFromGitHub { owner = "altsem"; repo = "gitu"; rev = "v${version}"; hash = "sha256-BAfOenO/LrMfOPI+DStKdPp14t4+1AP8Z8/uoqU6Wfw="; }; cargoHash = "sha256-yqmXXkviRbY9YS+JjAx5iXLu6cvMWotcf/PsrpfER5k="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ libgit2 openssl zlib ]; nativeCheckInputs = [ git ]; meta = with lib; { description = "TUI Git client inspired by Magit"; homepage = "https://github.com/altsem/gitu"; changelog = "https://github.com/altsem/gitu/blob/${src.rev}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ evanrichter ]; mainProgram = "gitu"; }; }