nixpkgs/pkgs/by-name/gi/gitu/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
996 B
Nix
Raw Normal View History

2024-03-09 06:31:44 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2
, openssl
, zlib
, stdenv
, darwin
, git
}:
rustPlatform.buildRustPackage rec {
pname = "gitu";
2024-04-16 07:02:53 +00:00
version = "0.16.0";
2024-03-09 06:31:44 +00:00
src = fetchFromGitHub {
owner = "altsem";
repo = "gitu";
rev = "v${version}";
2024-04-16 07:02:53 +00:00
hash = "sha256-ePyMyKCI8fHKfoNCMYyYeCPkyYF5KyMYaPrB1NtovCs=";
2024-03-09 06:31:44 +00:00
};
2024-04-16 07:02:53 +00:00
cargoHash = "sha256-1komuFSucXYdgeAFWeeuMmZYxb6Mzku7hdltDwKAa7A=";
2024-03-09 06:31:44 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
2024-04-16 07:02:53 +00:00
darwin.apple_sdk.frameworks.AppKit
2024-03-09 06:31:44 +00:00
darwin.apple_sdk.frameworks.Security
];
nativeCheckInputs = [
git
];
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; [ evanrichter ];
mainProgram = "gitu";
};
}