2023-07-15 17:15:38 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, CoreServices }:
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdbook-katex";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.9.0";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-OTMPf/ZlUtqKz8Lb0uFOhad33N6SaCIZ86I2ajZ19fU=";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-U8uDcNkEyz7zAqCTthY5SVGshsJRKRaoBLOpBpQ9sho=";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Preprocessor for mdbook, rendering LaTeX equations to HTML at build time";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mdbook-katex";
|
2021-10-11 16:52:03 +00:00
|
|
|
homepage = "https://github.com/lzanini/${pname}";
|
|
|
|
license = [ licenses.mit ];
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ lovesegfault matthiasbeyer ];
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
}
|