Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
988 B
Nix
37 lines
988 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
graphviz,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mdbook-graphviz";
|
|
version = "0.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dylanowen";
|
|
repo = "mdbook-graphviz";
|
|
# Upstream has rewritten tags before:
|
|
# https://github.com/dylanowen/mdbook-graphviz/issues/180
|
|
rev = "6e368ad745934fb9e10f224cfc0dc15d4f6fa114";
|
|
hash = "sha256-f02SOyU5REm+uP4/vB/1yG9M0Vg8ShF2hj5NKuh0jLU=";
|
|
};
|
|
|
|
cargoHash = "sha256-A1pFifxshWynwA88iLTMOm21NKCH8fHl5nFiV4wEG8A=";
|
|
|
|
nativeCheckInputs = [ graphviz ];
|
|
|
|
meta = {
|
|
description = "Preprocessor for mdbook, rendering Graphviz graphs to HTML at build time";
|
|
mainProgram = "mdbook-graphviz";
|
|
homepage = "https://github.com/dylanowen/mdbook-graphviz";
|
|
changelog = "https://github.com/dylanowen/mdbook-graphviz/releases/tag/v${version}";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [
|
|
lovesegfault
|
|
matthiasbeyer
|
|
];
|
|
};
|
|
}
|