2024-07-28 00:35:54 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchCrate,
|
2024-08-03 01:25:03 +02:00
|
|
|
nix-update-script,
|
2024-07-28 00:35:54 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "mdbook-yml-header";
|
|
|
|
version = "0.1.4";
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-qRAqZUKOiXTh4cJjczBQ9zAL6voaDvko7elfE6eB2jA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-cn+R36koBSEp+wKtCQJK/L+mxeb8sHkZu8kWYRigIvw=";
|
|
|
|
|
2024-08-03 01:25:03 +02:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2024-07-28 00:35:54 +02:00
|
|
|
meta = {
|
|
|
|
description = "MdBook preprocessor for removing yml header within --- (front-matter)";
|
|
|
|
homepage = "https://github.com/dvogt23/mdbook-yml-header";
|
|
|
|
license = lib.licenses.mpl20;
|
2024-08-03 02:20:20 +02:00
|
|
|
sourceProvenance = [ lib.sourceTypes.fromSource ];
|
2024-07-28 00:35:54 +02:00
|
|
|
mainProgram = "mdbook-yml-header";
|
|
|
|
maintainers = [ lib.maintainers.pinage404 ];
|
|
|
|
};
|
|
|
|
}
|