11 rustPlatform.buildRustPackage rec {
12 pname = "mdbook-plantuml";
15 src = fetchFromGitHub {
16 owner = "sytsereitsma";
19 hash = "sha256-26epwn6j/ZeMAphiFsrLjS0KIewvElr7V3p/EDr4Uqk=";
23 # https://github.com/sytsereitsma/mdbook-plantuml/pull/60
25 name = "update-mdbook-for-rust-1.64.patch";
26 url = "https://github.com/sytsereitsma/mdbook-plantuml/commit/a1c7fdaff65fbbcc086006f6d180b27e180739e7.patch";
27 hash = "sha256-KXFQxogR6SaoX8snsSYMA8gn1FrQVKMl5l8khxB09WE=";
31 cargoHash = "sha256-3HlnhRexfFcAuk1RoatWORMJvYRrnoEft5ys6j3t9S0=";
33 nativeBuildInputs = [ pkg-config ];
35 buildInputs = [ openssl ]
36 ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
39 description = "mdBook preprocessor to render PlantUML diagrams to png images in the book output directory";
40 mainProgram = "mdbook-plantuml";
41 homepage = "https://github.com/sytsereitsma/mdbook-plantuml";
42 license = [ licenses.mit ];
43 maintainers = with maintainers; [ jcouyang matthiasbeyer ];