1 { lib, rustPlatform, fetchCrate, stdenv, CoreServices }:
3 rustPlatform.buildRustPackage rec {
4 pname = "mdbook-katex";
9 hash = "sha256-OTMPf/ZlUtqKz8Lb0uFOhad33N6SaCIZ86I2ajZ19fU=";
12 cargoHash = "sha256-U8uDcNkEyz7zAqCTthY5SVGshsJRKRaoBLOpBpQ9sho=";
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 ];