Unverified Commit bf23d0e4 authored by Theodore Ni's avatar Theodore Ni
Browse files

mdbook-katex: 0.2.10 -> 0.2.17

There is a new co-maintainer who breathed new life into this project,
but as a consequence the Cargo.lock file is no longer present with each
released tag in the GitHub repo, so need to switch to crates.io.
parent b45ec953
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
{ lib, stdenv, fetchCrate, rustPlatform, openssl, CoreServices }:

rustPlatform.buildRustPackage rec {
  pname = "mdbook-katex";
  version = "0.2.10";
  version = "0.2.17";

  src = fetchFromGitHub {
    owner = "lzanini";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-5PzXX7icRxcHpzjp3x/9ssn2o0444uHrzBn1Ds1DEPM=";
  src = fetchCrate {
    inherit pname version;
    sha256 = "sha256-rJzZVZn8CJOIcSVLCLv6tWox0MRdxNBMUKo1fij1ogc=";
  };

  cargoPatches = [
    # Remove when https://github.com/lzanini/mdbook-katex/pull/35 is in a new release.
    ./update-mdbook-for-rust-1.64.patch
  ];
  cargoHash = "sha256-aSFXTeP5wDshdrrJ+eJCTmLuTlxCuM+5irUr0iW4tAY=";

  cargoHash = "sha256-lrEirKkGf9/8yLyLSON54UaeQ3Xtl7g7ezUc7e1KVHw=";
  OPENSSL_DIR = "${lib.getDev openssl}";
  OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";

  buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];

+0 −1417

File deleted.

Preview size limit exceeded, changes collapsed.