2021-10-12 21:37:04 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices, graphviz }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-graphviz";
|
2021-12-03 01:13:49 +01:00
|
|
|
version = "0.1.3";
|
2021-10-12 21:37:04 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dylanowen";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-03 01:13:49 +01:00
|
|
|
sha256 = "sha256-yY8ZdRNP0G9dwrwUtNZIaodIlEK4GRgZQ5D1GpLhDGg=";
|
2021-10-12 21:37:04 +02:00
|
|
|
};
|
|
|
|
|
2021-12-03 01:13:49 +01:00
|
|
|
cargoSha256 = "sha256-d8/xa2Aq6g0Kvqq11kzVTp1oooN6dPowpKW0uenBevw=";
|
2021-10-12 21:37:04 +02:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
|
|
|
checkInputs = [ graphviz ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A preprocessor for mdbook, rendering Graphviz graphs to HTML at build time.";
|
|
|
|
homepage = "https://github.com/dylanowen/mdbook-graphviz";
|
|
|
|
license = [ licenses.mpl20 ];
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
};
|
|
|
|
}
|