mdbook-open-on-gh: patch to work with rust 1.64
This commit is contained in:
parent
c10927773f
commit
5aae5330ee
|
@ -1,4 +1,4 @@
|
||||||
{ lib, rustPlatform, fetchFromGitHub }:
|
{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "mdbook-open-on-gh";
|
pname = "mdbook-open-on-gh";
|
||||||
|
@ -8,10 +8,19 @@ rustPlatform.buildRustPackage rec {
|
||||||
owner = "badboy";
|
owner = "badboy";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "2.2.0";
|
rev = "2.2.0";
|
||||||
sha256 = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI=";
|
hash = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-FVcCzL0jJ827HHS/9G597QjNFY3HLNYHCPWcepEulD0=";
|
cargoPatches = [
|
||||||
|
# https://github.com/badboy/mdbook-open-on-gh/pull/7
|
||||||
|
(fetchpatch {
|
||||||
|
name = "update-mdbook-for-rust-1.64.patch";
|
||||||
|
url = "https://github.com/badboy/mdbook-open-on-gh/commit/bd20601bfcec144c9302b1ba1a1aff4b95b334d9.patch";
|
||||||
|
hash = "sha256-3Df9Q3sqCpZzqCN9fi+wdeWjLUW4XdywIS3QUjsDE9g=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
cargoHash = "sha256-N0RwengTWk4luPIecIxzbFReGi+PtE77FJalPq1CdbA=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "mdbook preprocessor to add a open-on-github link on every page";
|
description = "mdbook preprocessor to add a open-on-github link on every page";
|
||||||
|
|
Loading…
Reference in a new issue