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";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.1.6";
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dylanowen";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-WkjkQll5oETVADYpA8/CIZOJCBnfenGSy49sZ5nAQ+c=";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
cargoHash = "sha256-whBTPQGozPPTSdXuRx5wamc1yy/EC3wNShQGhRqdY9Y=";
|
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; {
|
|
|
|
description = "A preprocessor for mdbook, rendering Graphviz graphs to HTML at build time.";
|
|
|
|
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 ];
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
};
|
|
|
|
}
|