21cecf6002
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
24 lines
693 B
Nix
24 lines
693 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-mermaid";
|
|
version = "0.8.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "badboy";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-maYFOlWNqKFmyDM2nDF25rzYnUXMlV9Ry9TMoXReUUg=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-GL5Z4KfRu0zQAzVCWRIhaYtG5FrDdQabsbyFX7SjZvg=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
meta = with lib; {
|
|
description = "A preprocessor for mdbook to add mermaid.js support";
|
|
homepage = "https://github.com/badboy/mdbook-mermaid";
|
|
license = [ licenses.mpl20 ];
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
};
|
|
}
|