1 { lib, rustPlatform, fetchCrate, stdenv, CoreServices }:
3 rustPlatform.buildRustPackage rec {
4 pname = "mdbook-katex";
9 hash = "sha256-F+yNfXBTAg9S6R85bGStumr1OXdWN3o95TxC0qgUeME=";
12 cargoHash = "sha256-01lr6ZS+7MmgKmuP+xEX7j1x2qDofmzeevUqY/UqRUw=";
14 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
17 description = "Preprocessor for mdbook, rendering LaTeX equations to HTML at build time";
18 mainProgram = "mdbook-katex";
19 homepage = "https://github.com/lzanini/${pname}";
20 license = [ licenses.mit ];
21 maintainers = with maintainers; [ lovesegfault matthiasbeyer ];