mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
Merge pull request #141038 from lovesegfault/mdbook-katex-init
mdbook-katex: init @ 0.2.10
This commit is contained in:
commit
91b8b43db0
24
pkgs/tools/text/mdbook-katex/default.nix
Normal file
24
pkgs/tools/text/mdbook-katex/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdbook-katex";
|
||||
version = "0.2.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lzanini";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-5PzXX7icRxcHpzjp3x/9ssn2o0444uHrzBn1Ds1DEPM=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-tqdpIBlKiyYSWFPYTnzVeDML2GM+mukbOHS3sNYUgdc=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A preprocessor for mdbook, rendering LaTeX equations to HTML at build time.";
|
||||
homepage = "https://github.com/lzanini/${pname}";
|
||||
license = [ licenses.mit ];
|
||||
maintainers = with maintainers; [ lovesegfault ];
|
||||
};
|
||||
}
|
@ -6800,6 +6800,10 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdbook-katex = callPackage ../tools/text/mdbook-katex {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
mdbook-mermaid = callPackage ../tools/text/mdbook-mermaid {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user