3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/mdbook-mermaid/default.nix

25 lines
693 B
Nix
Raw Normal View History

2021-04-14 03:52:08 +01:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-mermaid";
2022-02-01 11:13:42 +00:00
version = "0.9.0";
2021-04-14 03:52:08 +01:00
src = fetchFromGitHub {
owner = "badboy";
repo = pname;
rev = "v${version}";
2022-02-01 11:13:42 +00:00
sha256 = "sha256-AUhJwAi1rdM7tw8rm8lSQ1tBu+NtxMgVRB2sat4Dyps=";
2021-04-14 03:52:08 +01:00
};
2022-02-01 11:13:42 +00:00
cargoSha256 = "sha256-0j1cSTH3lK/knJBUH+B7qBdRh8cBqB8hNz7i3vN2+tE=";
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 ];
};
}