diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2022-10-06 16:38:39 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2022-10-07 16:53:12 -0700 |
commit | e907f76622709cf366059f16af3e6966da787398 (patch) | |
tree | da68776f4ce06f9005f607e64f9a1e778105ce56 | |
parent | bccd2d144fec9c2e990509c8d9f330ed22e606f8 (diff) |
fundoc: patch to work with rust 1.64
-rw-r--r-- | pkgs/development/tools/fundoc/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/development/tools/fundoc/default.nix b/pkgs/development/tools/fundoc/default.nix index f7a81a27701f0..dfeab3a6efd71 100644 --- a/pkgs/development/tools/fundoc/default.nix +++ b/pkgs/development/tools/fundoc/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, fetchFromGitHub }: +{ lib, rustPlatform, fetchFromGitHub, fetchpatch }: rustPlatform.buildRustPackage rec { pname = "fundoc"; @@ -8,10 +8,19 @@ rustPlatform.buildRustPackage rec { owner = "csssr"; repo = pname; rev = "v${version}"; - sha256 = "sha256-qmsr4bhErpMzS71NhLep0EWimZb/S3aEhMbeBNa5y8E="; + hash = "sha256-qmsr4bhErpMzS71NhLep0EWimZb/S3aEhMbeBNa5y8E="; }; - cargoSha256 = "sha256-G2KRjkccS/rfrb7BtotbG6L4WaVnfwY1UEXLnVBLSzM="; + cargoPatches = [ + # https://github.com/CSSSR/fundoc/pull/36 + (fetchpatch { + name = "update-dependencies-for-rust-1.64.patch"; + url = "https://github.com/CSSSR/fundoc/commit/9e0c5f747088467b70bd385fcb8888950351143f.patch"; + hash = "sha256-JUTwMdxxt+2jst9DyqgkblZodBSYJzaDtjiLRQ8mJFU="; + }) + ]; + + cargoHash = "sha256-1gKxFznoGYGme0UicP73FQt8CnI9IeyHJxLgRcLffm0="; meta = with lib; { description = "Language agnostic documentation generator"; |