mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
Merge pull request #196238 from tjni/mdbook-mermaid
mdbook-mermaid: 0.11.2 -> 0.12.0
This commit is contained in:
commit
5499415827
|
@ -1,26 +1,17 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, CoreServices }:
|
||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "mdbook-mermaid";
|
||||
version = "0.11.2";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "badboy";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-zXgXgcMF7MOa9Vx3rhv9aavqRCfMcyRLtaWEvYlyaTs=";
|
||||
hash = "sha256-1w132lpkn0m2ZoMyFKFGjwn9Gd3UDksEKr5vq8l4ANQ=";
|
||||
};
|
||||
|
||||
cargoPatches = [
|
||||
# https://github.com/badboy/mdbook-mermaid/pull/23
|
||||
(fetchpatch {
|
||||
name = "update-mdbook-for-rust-1.64.patch";
|
||||
url = "https://github.com/badboy/mdbook-mermaid/commit/5a3432d1b28ef9a065dd37aa77b82a3593358793.patch";
|
||||
hash = "sha256-NkCxGmRdwJ+jdkgxp5gWfGpgpLpEpKUd44LyPx0kyEE=";
|
||||
})
|
||||
];
|
||||
|
||||
cargoHash = "sha256-IkMBnBuobrJzR6+030/Wfbu2ZCjvFnjBV+6sSWdiNUw=";
|
||||
cargoHash = "sha256-OKE8RcCE4pIRtQDW7KNzUVrNpyZzWg6QHchJg0XWmYQ=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue