Merge pull request #119386 from xrelkd/add/mdbook-mermaid
mdbook-mermaid: init at 0.8.1
This commit is contained in:
commit
05133d55b5
24
pkgs/tools/text/mdbook-mermaid/default.nix
Normal file
24
pkgs/tools/text/mdbook-mermaid/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdbook-mermaid";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "badboy";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-UMYWRQeSQwWVJla/+RPlAXPMuFVnxqDtYDxLKmbMw4g=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-nhJS2QZUyGeNRMS9D+P+QPMDHK2PqVK/H2AKaP7EECw=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -6034,6 +6034,10 @@ in
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdbook-mermaid = callPackage ../tools/text/mdbook-mermaid {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdcat = callPackage ../tools/text/mdcat {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
inherit (python3Packages) ansi2html;
|
||||
|
Loading…
Reference in New Issue
Block a user