keifu: init at 0.3.0

This commit is contained in:
Usu171
2026-05-18 23:06:07 +08:00
parent 9fba13c0b2
commit 086e90a7fa
+64
View File
@@ -0,0 +1,64 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
libgit2,
openssl,
zlib,
makeWrapper,
gitMinimal,
stdenv,
libiconv,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "keifu";
version = "0.3.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "trasta298";
repo = "keifu";
tag = "v${finalAttrs.version}";
hash = "sha256-Srw71Rswafu70kKI36dY1PtB4BQhpTYYzqbrWJuvaUM=";
};
cargoHash = "sha256-Ga405TV1uDSZbADrV+3aAeLDRfdPFHzdxxTEDu+f+b4=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
libgit2
openssl
zlib
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
env = {
OPENSSL_NO_VENDOR = true;
};
postInstall = ''
wrapProgram $out/bin/keifu \
--prefix PATH : ${lib.makeBinPath [ gitMinimal ]}
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "A TUI tool to visualize Git commit graphs with branch genealogy";
homepage = "https://github.com/trasta298/keifu";
changelog = "https://github.com/trasta298/keifu/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
usu171
];
mainProgram = "keifu";
platforms = lib.platforms.unix;
};
})