2021-04-14 04:52:08 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-mermaid";
|
2022-02-12 16:14:52 +01:00
|
|
|
version = "0.10.0";
|
2021-04-14 04:52:08 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "badboy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-12 16:14:52 +01:00
|
|
|
sha256 = "sha256-dXeu/e92lafurA/bqKoszIjK/3qw/ZvVKnDxYALRpTk=";
|
2021-04-14 04:52:08 +02:00
|
|
|
};
|
|
|
|
|
2022-02-12 16:14:52 +01:00
|
|
|
cargoSha256 = "sha256-LVfeQPRpwv1l3Brm8HJYoYvv26fJhsfR4I9Ds4NuWQM=";
|
2021-04-14 04:52:08 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|