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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
690 B
Nix
Raw Normal View History

2022-10-16 07:33:30 +01:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
2021-04-14 03:52:08 +01:00
rustPlatform.buildRustPackage rec {
pname = "mdbook-mermaid";
2022-11-04 03:02:05 +00:00
version = "0.12.1";
2021-04-14 03:52:08 +01:00
src = fetchFromGitHub {
owner = "badboy";
repo = pname;
rev = "v${version}";
2022-11-04 03:02:05 +00:00
hash = "sha256-22JmV4cFfUTwiweQP0Em2VbqmTUui2yWnbhKagprQ4Q=";
2021-04-14 03:52:08 +01:00
};
2022-11-04 03:02:05 +00:00
cargoHash = "sha256-tztzmfWOtqFGWERMWgBSAqvT+hKfhBWL9KW4awixXk0=";
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 ];
};
}