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.

33 lines
796 B
Nix
Raw Normal View History

2023-01-20 06:02:38 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, CoreServices
}:
2021-04-14 02:52:08 +00:00
rustPlatform.buildRustPackage rec {
pname = "mdbook-mermaid";
2023-12-16 16:39:03 +00:00
version = "0.13.0";
2021-04-14 02:52:08 +00:00
src = fetchFromGitHub {
owner = "badboy";
repo = pname;
2023-01-20 06:02:38 +00:00
rev = "refs/tags/v${version}";
2023-12-16 16:39:03 +00:00
hash = "sha256-Qyt5N6Fito++5lpjDXlzupmguue9kc409IpaDkIRgxw=";
2021-04-14 02:52:08 +00:00
};
2023-12-16 16:39:03 +00:00
cargoHash = "sha256-ji38ZNOZ+SDL7+9dvaRIA38EsqMqYWpSmZntexJqcMU=";
2021-04-14 02:52:08 +00:00
2023-01-20 06:02:38 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
CoreServices
];
2021-04-14 02:52:08 +00:00
meta = with lib; {
description = "A preprocessor for mdbook to add mermaid.js support";
homepage = "https://github.com/badboy/mdbook-mermaid";
2023-01-20 06:02:38 +00:00
changelog = "https://github.com/badboy/mdbook-mermaid/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
2021-04-14 02:52:08 +00:00
maintainers = with maintainers; [ xrelkd ];
};
}