tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mdbook-open-on-gh: patch to work with rust 1.64
Theodore Ni
3 years ago
5aae5330
c1092777
+12
-3
1 changed file
expand all
collapse all
unified
split
pkgs
tools
text
mdbook-open-on-gh
default.nix
+12
-3
pkgs/tools/text/mdbook-open-on-gh/default.nix
···
1
1
-
{ lib, rustPlatform, fetchFromGitHub }:
1
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
11
-
sha256 = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI=";
11
11
+
hash = "sha256-x7ESuXoF5dYnJZpgDyYliVixCG4w/VX/Vhm3VqxsiEI=";
12
12
};
13
13
14
14
-
cargoSha256 = "sha256-FVcCzL0jJ827HHS/9G597QjNFY3HLNYHCPWcepEulD0=";
14
14
+
cargoPatches = [
15
15
+
# https://github.com/badboy/mdbook-open-on-gh/pull/7
16
16
+
(fetchpatch {
17
17
+
name = "update-mdbook-for-rust-1.64.patch";
18
18
+
url = "https://github.com/badboy/mdbook-open-on-gh/commit/bd20601bfcec144c9302b1ba1a1aff4b95b334d9.patch";
19
19
+
hash = "sha256-3Df9Q3sqCpZzqCN9fi+wdeWjLUW4XdywIS3QUjsDE9g=";
20
20
+
})
21
21
+
];
22
22
+
23
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";