2023-07-12 17:12:15 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, graphviz }:
|
2021-10-12 20:37:04 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-graphviz";
|
2024-08-08 15:45:09 +01:00
|
|
|
version = "0.2.1";
|
2021-10-12 20:37:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dylanowen";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-08-08 15:45:09 +01:00
|
|
|
hash = "sha256-QLgTUQWfGoUV7L+nZKyO7yBYFi8/puikWkmDHQihc50=";
|
2021-10-12 20:37:04 +01:00
|
|
|
};
|
|
|
|
|
2024-08-08 15:45:09 +01:00
|
|
|
cargoHash = "sha256-cMCNZ8Ezp7bFx4EnuZCXhqoaE0yN3iK9KnCYBYGPHKc=";
|
2021-10-12 20:37:04 +01:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ graphviz ];
|
2021-10-12 20:37:04 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-08 05:29:45 +00:00
|
|
|
description = "Preprocessor for mdbook, rendering Graphviz graphs to HTML at build time";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "mdbook-graphviz";
|
2021-10-12 20:37:04 +01:00
|
|
|
homepage = "https://github.com/dylanowen/mdbook-graphviz";
|
2023-02-26 03:00:46 +00:00
|
|
|
changelog = "https://github.com/dylanowen/mdbook-graphviz/releases/tag/v${version}";
|
2021-10-12 20:37:04 +01:00
|
|
|
license = [ licenses.mpl20 ];
|
2024-04-17 19:58:30 +01:00
|
|
|
maintainers = with maintainers; [ lovesegfault matthiasbeyer ];
|
2021-10-12 20:37:04 +01:00
|
|
|
};
|
|
|
|
}
|