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.
This commit is contained in:
Theodore Ni 2022-11-26 23:56:12 -08:00
parent b45ec95379
commit bf23d0e45b
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 8 additions and 1429 deletions

View File

@ -1,22 +1,18 @@
{ 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 ];

File diff suppressed because it is too large Load Diff