summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2022-10-05 14:54:27 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2022-10-07 08:06:35 -0700
commitee04f163bda709001dcc4d237ae83a84e863da1e (patch)
tree59f823a1b14a3721247689217cf5265a4737ec45 /pkgs/tools
parent508d498cbce318718880870fcc3283163cdfa29f (diff)
downloadnixpkgs-ee04f163bda709001dcc4d237ae83a84e863da1e.tar
nixpkgs-ee04f163bda709001dcc4d237ae83a84e863da1e.tar.gz
nixpkgs-ee04f163bda709001dcc4d237ae83a84e863da1e.tar.bz2
nixpkgs-ee04f163bda709001dcc4d237ae83a84e863da1e.tar.lz
nixpkgs-ee04f163bda709001dcc4d237ae83a84e863da1e.tar.xz
nixpkgs-ee04f163bda709001dcc4d237ae83a84e863da1e.tar.zst
nixpkgs-ee04f163bda709001dcc4d237ae83a84e863da1e.zip
mdbook-plantuml: 0.7.0 -> 0.8.0
Plus pulls in a patch that updates mdbook to work with Rust 1.64.
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/text/mdbook-plantuml/default.nix28
1 files changed, 23 insertions, 5 deletions
diff --git a/pkgs/tools/text/mdbook-plantuml/default.nix b/pkgs/tools/text/mdbook-plantuml/default.nix
index 0b26bee0953..e57bd1a4522 100644
--- a/pkgs/tools/text/mdbook-plantuml/default.nix
+++ b/pkgs/tools/text/mdbook-plantuml/default.nix
@@ -1,18 +1,36 @@
-{ lib, fetchFromGitHub, stdenv, rustPlatform, darwin, pkg-config, openssl
-, libiconv, CoreServices }:
+{ lib
+, fetchFromGitHub
+, fetchpatch
+, stdenv
+, rustPlatform
+, darwin
+, pkg-config
+, openssl
+, libiconv
+, CoreServices
+}:
 
 rustPlatform.buildRustPackage rec {
   pname = "mdbook-plantuml";
-  version = "0.7.0";
+  version = "0.8.0";
 
   src = fetchFromGitHub {
     owner = "sytsereitsma";
     repo = pname;
     rev = "v${version}";
-    sha256 = "1m53sp3k387injn6mwk2c6rkzw16b12m4j7q0p69fdb3fiqbkign";
+    hash = "sha256-26epwn6j/ZeMAphiFsrLjS0KIewvElr7V3p/EDr4Uqk=";
   };
 
-  cargoSha256 = "0xi14k86ym3rfz6901lmj444y814m7vp90bwsyjmcph3hdv6mjp0";
+  cargoPatches = [
+    # https://github.com/sytsereitsma/mdbook-plantuml/pull/60
+    (fetchpatch {
+      name = "update-mdbook-for-rust-1.64.patch";
+      url = "https://github.com/sytsereitsma/mdbook-plantuml/commit/a1c7fdaff65fbbcc086006f6d180b27e180739e7.patch";
+      hash = "sha256-KXFQxogR6SaoX8snsSYMA8gn1FrQVKMl5l8khxB09WE=";
+    })
+  ];
+
+  cargoHash = "sha256-3HlnhRexfFcAuk1RoatWORMJvYRrnoEft5ys6j3t9S0=";
 
   nativeBuildInputs = [ pkg-config ];