2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, graphviz }:
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-graphviz";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.1.7";
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dylanowen";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-FuAjuU4IXXuas+ubSuTMrZiYTGcZCuLTCSTJXtY2nlw=";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-d4s9wmjqMHjev1Y4nAobFnCc5NTdklXcs7XTRXFMEjU=";
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ graphviz ];
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "A preprocessor for mdbook, rendering Graphviz graphs to HTML at build time";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mdbook-graphviz";
|
2021-10-14 00:43:12 +00:00
|
|
|
homepage = "https://github.com/dylanowen/mdbook-graphviz";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/dylanowen/mdbook-graphviz/releases/tag/v${version}";
|
2021-10-14 00:43:12 +00:00
|
|
|
license = [ licenses.mpl20 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ lovesegfault matthiasbeyer ];
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
}
|