depot/pkgs/by-name/md/mdbook-yml-header/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
770 B
Nix

{
lib,
rustPlatform,
fetchCrate,
nix-update-script,
}:
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=";
passthru.updateScript = nix-update-script { };
meta = {
description = "MdBook preprocessor for removing yml header within --- (front-matter)";
homepage = "https://github.com/dvogt23/mdbook-yml-header";
license = lib.licenses.mpl20;
sourceProvenance = [ lib.sourceTypes.fromSource ];
mainProgram = "mdbook-yml-header";
maintainers = [ lib.maintainers.pinage404 ];
};
}