From 5a07e3e3819b5675a8e8458eab06075c4b7d4eba Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Sat, 27 Jan 2024 19:09:46 -0800 Subject: [PATCH] pulldown-cmark: 0.9.3 -> 0.9.4 We have to switch to `fetchCrate` because upstream forgot to rebuild their `Cargo.lock` after bumping the version in `Cargo.toml` by the time they tagged a release. --- pkgs/tools/typesetting/pulldown-cmark/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/typesetting/pulldown-cmark/default.nix b/pkgs/tools/typesetting/pulldown-cmark/default.nix index 9a946eae732d..f805eaec92dc 100644 --- a/pkgs/tools/typesetting/pulldown-cmark/default.nix +++ b/pkgs/tools/typesetting/pulldown-cmark/default.nix @@ -1,20 +1,18 @@ { lib , rustPlatform -, fetchFromGitHub +, fetchCrate }: rustPlatform.buildRustPackage rec { pname = "pulldown-cmark"; - version = "0.9.3"; + version = "0.9.4"; - src = fetchFromGitHub { - owner = "raphlinus"; - repo = pname; - rev = "v${version}"; - hash = "sha256-FK/+6N81qYyFsisPn5SkpubvWMYO7dLX9iHgNY/tAo4="; + src = fetchCrate { + inherit pname version; + hash = "sha256-B+Zxs88/F5B5TpgKLmcNX8rByGVVJcbTuwLcF8Ql9eE="; }; - cargoHash = "sha256-fcVnIb6WPRk133uTMH0xxmEJ3YgsftsTJXjqfOQQPDI="; + cargoHash = "sha256-cIpixyAqeZ/EeEv4ChYiRpbRVD9xqJqxZz7kemxKC30="; meta = { description = "A pull parser for CommonMark written in Rust";