about summary refs log tree commit diff
path: root/pkgs/tools/text/mdbook-katex
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2021-10-08 16:07:34 -0700
committerBernardo Meurer <bernardo@meurer.org>2021-10-08 16:07:34 -0700
commit5f79b7a15b4658caa415e63f3d4e84b4b58f9991 (patch)
tree323919b2bb021ef5a24d3357d08889ece5c79384 /pkgs/tools/text/mdbook-katex
parentf23731c7681a2aa74f5f8ac20363c8eb17ca148a (diff)
downloadnixlib-5f79b7a15b4658caa415e63f3d4e84b4b58f9991.tar
nixlib-5f79b7a15b4658caa415e63f3d4e84b4b58f9991.tar.gz
nixlib-5f79b7a15b4658caa415e63f3d4e84b4b58f9991.tar.bz2
nixlib-5f79b7a15b4658caa415e63f3d4e84b4b58f9991.tar.lz
nixlib-5f79b7a15b4658caa415e63f3d4e84b4b58f9991.tar.xz
nixlib-5f79b7a15b4658caa415e63f3d4e84b4b58f9991.tar.zst
nixlib-5f79b7a15b4658caa415e63f3d4e84b4b58f9991.zip
mdbook-katex: init @ 0.2.10
Diffstat (limited to 'pkgs/tools/text/mdbook-katex')
-rw-r--r--pkgs/tools/text/mdbook-katex/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/text/mdbook-katex/default.nix b/pkgs/tools/text/mdbook-katex/default.nix
new file mode 100644
index 000000000000..a97e7ca89483
--- /dev/null
+++ b/pkgs/tools/text/mdbook-katex/default.nix
@@ -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 ];
+  };
+}