treemd: init at 0.1.2

This commit is contained in:
Yiyu Zhou
2025-11-08 19:14:56 -08:00
parent f780f1f7c7
commit 29121bd2f0
+35
View File
@@ -0,0 +1,35 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "treemd";
version = "0.1.2";
src = fetchFromGitHub {
owner = "Epistates";
repo = "treemd";
tag = "v${finalAttrs.version}";
hash = "sha256-PloG2eYelsp0Y3bG2ZNgSuwwPnKufBWwLW2TMQBGu1M=";
};
cargoHash = "sha256-jX2X90Kk8iAVVNm/r37v+0X1WSXje/GRr0Tv0ZzuwWI=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "TUI/CLI markdown navigator with tree-based structural navigation";
homepage = "https://github.com/Epistates/treemd";
changelog = "https://github.com/Epistates/treemd/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yiyu ];
mainProgram = "treemd";
};
})