nixpkgs/pkgs/by-name/md/mdbook-alerts/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
715 B
Nix
Raw Normal View History

{
lib,
fetchFromGitHub,
rustPlatform,
}:
2024-11-21 10:06:03 +00:00
rustPlatform.buildRustPackage rec {
pname = "mdbook-alerts";
2024-11-21 10:06:03 +00:00
version = "0.6.10";
src = fetchFromGitHub {
owner = "lambdalisue";
repo = "rs-mdbook-alerts";
rev = "v${version}";
2024-11-21 10:06:03 +00:00
hash = "sha256-xyjLrqNb/YC2FWQXsCFJgiIDZz4xWACnrUiBuXS2Nio=";
};
2024-11-21 10:06:03 +00:00
cargoHash = "sha256-ZKnpOgTyUETCW0qxAjEj2E75mgHWLxmaTTfpdW+y3OY=";
meta = {
description = "Preprocessor for mdbook to support the inclusion of Markdown alerts";
mainProgram = "mdbook-alerts";
homepage = "https://github.com/lambdalisue/rs-mdbook-alerts";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
brianmcgillion
matthiasbeyer
];
};
}