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-27 19:37:50 +00:00
version = "0.19.2";
2024-03-09 06:31:44 +00:00
src = fetchFromGitHub {
owner = "altsem";
repo = "gitu";
rev = "v${version}";
2024-04-27 19:37:50 +00:00
hash = "sha256-6gjXsuxKGv8OrbBg8NDOj5ITpLI3S33VsjpCbK5SaIk=";
2024-03-09 06:31:44 +00:00
};
2024-04-27 19:37:50 +00:00
cargoHash = "sha256-W73sSZ/OjeRcI2NNTp2gkabtC6krXOnv8nRAbNbXOp4=";
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";
};
}