mktoc: init at 4.0.0

This commit is contained in:
Kevin Gimbel
2025-12-04 13:31:19 +01:00
parent e235e76399
commit 05daa053c3
+33
View File
@@ -0,0 +1,33 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mktoc";
version = "4.0.0";
src = fetchFromGitHub {
owner = "KevinGimbel";
repo = "mktoc";
rev = "v${finalAttrs.version}";
hash = "sha256-Pq4o0t0cUrkXff+qSU5mlDo5A0nhFBuFk3Xz10AWDeo=";
};
cargoHash = "sha256-SdwNXstW61Yvp1V72nxl+9dijGJwyrdPYZo+q0UGYGg=";
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
meta = {
description = "Markdown Table of Content generator";
homepage = "https://github.com/KevinGimbel/mktoc";
license = lib.licenses.mit;
mainProgram = "mktoc";
maintainers = with lib.maintainers; [ kevingimbel ];
};
})