46 lines
920 B
Nix
46 lines
920 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
libgit2,
|
|
openssl,
|
|
zlib,
|
|
stdenv,
|
|
darwin,
|
|
git,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gitu";
|
|
version = "0.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "altsem";
|
|
repo = "gitu";
|
|
rev = "v${version}";
|
|
hash = "sha256-a4hNgEizxanYE3XuHSCmbV6CkOqhXkznP3Sp0KLFFQs=";
|
|
};
|
|
|
|
cargoHash = "sha256-+CA3UG32oZedzRbt7b0wOlhH/subuym4BCL5SMNzrr8=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
git
|
|
];
|
|
|
|
buildInputs = [
|
|
libgit2
|
|
openssl
|
|
zlib
|
|
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
|
|
|
meta = with lib; {
|
|
description = "A 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; [ ];
|
|
mainProgram = "gitu";
|
|
};
|
|
}
|