2025-07-26 11:39:35 +02:00

30 lines
742 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "mdbook-d2";
version = "0.3.6";
src = fetchFromGitHub {
owner = "danieleades";
repo = "mdbook-d2";
rev = "v${version}";
hash = "sha256-2mpGufQvnIForU0X96Mi65r2xQ+bIj9MdJugMXVPcnM=";
};
cargoHash = "sha256-K4vovc78MiLkWMVS4YDuSK9L7EmwpGdZXdRqeELcPT8=";
doCheck = false;
meta = with lib; {
description = "D2 diagram generator plugin for MdBook";
mainProgram = "mdbook-d2";
homepage = "https://github.com/danieleades/mdbook-d2";
changelog = "https://github.com/danieleades/mdbook-d2/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ matthiasbeyer ];
};
}