2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, CoreServices
|
|
|
|
}:
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-mermaid";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.13.0";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "badboy";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-Qyt5N6Fito++5lpjDXlzupmguue9kc409IpaDkIRgxw=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-ji38ZNOZ+SDL7+9dvaRIA38EsqMqYWpSmZntexJqcMU=";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
CoreServices
|
|
|
|
];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Preprocessor for mdbook to add mermaid.js support";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mdbook-mermaid";
|
2021-04-15 00:37:46 +00:00
|
|
|
homepage = "https://github.com/badboy/mdbook-mermaid";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/badboy/mdbook-mermaid/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mpl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ xrelkd matthiasbeyer ];
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
}
|