mdbook-admonish: patch to work with rust 1.64
This commit is contained in:
parent
2ae4a931aa
commit
f88a75731c
|
@ -1,15 +1,26 @@
|
||||||
{ lib, stdenv, fetchCrate, rustPlatform, CoreServices }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, CoreServices }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "mdbook-admonish";
|
pname = "mdbook-admonish";
|
||||||
version = "1.7.0";
|
version = "1.7.0";
|
||||||
|
|
||||||
src = fetchCrate {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "tommilligan";
|
||||||
sha256 = "sha256-QvFHpAsQ+S7q/Ye0YEf0phZcVvAs1a80Hd3eIGZBsrI=";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-AGOq05NevkRU8qHsJIWd2WfZ4i7w/wexf6c0fUAaoLg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-v7MGJlDm5nvydjFAZZS94afZY2OVUjJQ9eXYaY9JxBs=";
|
cargoPatches = [
|
||||||
|
# https://github.com/tommilligan/mdbook-admonish/pull/33
|
||||||
|
(fetchpatch {
|
||||||
|
name = "update-mdbook-for-rust-1.64.patch";
|
||||||
|
url = "https://github.com/tommilligan/mdbook-admonish/commit/650123645b18a3f8ed170738c7c1813315095ed9.patch";
|
||||||
|
hash = "sha256-8LMk+Dgz9k0g9fbGGC0X2byyJtfDDgvdGxO06mD6GDI=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
cargoHash = "sha256-5PWfze00/mWmzYqP5M1pAPt+SuknpU9dc0B7RSikuTE=";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue