mdbook-open-on-gh: patch to work with rust 1.64

+12 -3
+12 -3
pkgs/tools/text/mdbook-open-on-gh/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub }: 1 + { lib, rustPlatform, fetchFromGitHub, fetchpatch }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "mdbook-open-on-gh"; ··· 8 8 owner = "badboy"; 9 9 repo = pname; 10 10 rev = "2.2.0"; 11 - sha256 = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI="; 11 + hash = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-FVcCzL0jJ827HHS/9G597QjNFY3HLNYHCPWcepEulD0="; 14 + cargoPatches = [ 15 + # https://github.com/badboy/mdbook-open-on-gh/pull/7 16 + (fetchpatch { 17 + name = "update-mdbook-for-rust-1.64.patch"; 18 + url = "https://github.com/badboy/mdbook-open-on-gh/commit/bd20601bfcec144c9302b1ba1a1aff4b95b334d9.patch"; 19 + hash = "sha256-3Df9Q3sqCpZzqCN9fi+wdeWjLUW4XdywIS3QUjsDE9g="; 20 + }) 21 + ]; 22 + 23 + cargoHash = "sha256-N0RwengTWk4luPIecIxzbFReGi+PtE77FJalPq1CdbA="; 15 24 16 25 meta = with lib; { 17 26 description = "mdbook preprocessor to add a open-on-github link on every page";