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.

51 lines
957 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-05 23:49:51 +00:00
version = "0.13.1";
2024-03-09 06:31:44 +00:00
src = fetchFromGitHub {
owner = "altsem";
repo = "gitu";
rev = "v${version}";
2024-04-05 23:49:51 +00:00
hash = "sha256-1wfc3n3uSkox2wa5i+Qiv7PZ0d2dXXbwjWw8NMXJXj8=";
2024-03-09 06:31:44 +00:00
};
2024-04-05 23:49:51 +00:00
cargoHash = "sha256-JwNyzA6D8mIzp/+egjD2C7T9mGbcCKKtwFRXBuXMQ+U=";
2024-03-09 06:31:44 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
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";
};
}