diff --git a/pkgs/by-name/ma/matrix-tuwunel/doctest-fix.patch b/pkgs/by-name/ma/matrix-tuwunel/doctest-fix.patch new file mode 100644 index 000000000000..18c47bdde3e3 --- /dev/null +++ b/pkgs/by-name/ma/matrix-tuwunel/doctest-fix.patch @@ -0,0 +1,13 @@ +diff --git i/src/core/utils/debug.rs w/src/core/utils/debug.rs +index 31163a54..859dd9a9 100644 +--- i/src/core/utils/debug.rs ++++ w/src/core/utils/debug.rs +@@ -28,7 +28,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + /// use tuwunel_core::utils::debug::slice_truncated; + /// + /// #[tracing::instrument(fields(foos = slice_truncated(foos, 42)))] +-/// fn bar(foos: &[&str]); ++/// fn bar(foos: &[&str]) { } + /// ``` + pub fn slice_truncated( + slice: &[T], diff --git a/pkgs/by-name/ma/matrix-tuwunel/package.nix b/pkgs/by-name/ma/matrix-tuwunel/package.nix index f51d689da539..d997594e2435 100644 --- a/pkgs/by-name/ma/matrix-tuwunel/package.nix +++ b/pkgs/by-name/ma/matrix-tuwunel/package.nix @@ -85,16 +85,20 @@ let in rustPlatform.buildRustPackage (finalAttrs: { pname = "matrix-tuwunel"; - version = "1.3.0"; + version = "1.4.1"; src = fetchFromGitHub { owner = "matrix-construct"; repo = "tuwunel"; tag = "v${finalAttrs.version}"; - hash = "sha256-RuvGoXe/O48mQ4/rN+fh2N1NZ4uhvdtI1q4tRM/bRSE="; + hash = "sha256-41oQfqdsHjm3fBaG+y+Q7eru7LzSIwOc6K5A29Jmt2c="; }; - cargoHash = "sha256-LwVJe9EqBT7x7eBTzvo4Lu1geNI7CWpsIDNWL8AAg+U="; + cargoHash = "sha256-bTLKsWsma+a4ZD5ujJJ0xYvk769umIsTNE21KUTJj0U="; + + patches = [ + ./doctest-fix.patch + ]; nativeBuildInputs = [ pkg-config