2022-10-16 07:33:30 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
2021-04-14 03:52:08 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-mermaid";
|
2022-10-16 07:33:30 +01:00
|
|
|
version = "0.12.0";
|
2021-04-14 03:52:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "badboy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-10-16 07:33:30 +01:00
|
|
|
hash = "sha256-1w132lpkn0m2ZoMyFKFGjwn9Gd3UDksEKr5vq8l4ANQ=";
|
2021-04-14 03:52:08 +01:00
|
|
|
};
|
|
|
|
|
2022-10-16 07:33:30 +01:00
|
|
|
cargoHash = "sha256-OKE8RcCE4pIRtQDW7KNzUVrNpyZzWg6QHchJg0XWmYQ=";
|
2021-04-14 03:52:08 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|