3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #119386 from xrelkd/add/mdbook-mermaid

mdbook-mermaid: init at 0.8.1
This commit is contained in:
Sandro 2021-04-14 13:56:05 +02:00 committed by GitHub
commit 05133d55b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View 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 ];
};
}

View file

@ -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;