diff --git a/pkgs/by-name/cl/clipcat/package.nix b/pkgs/by-name/cl/clipcat/package.nix index 3eaf2dfe1193..4cb922c4f8e2 100644 --- a/pkgs/by-name/cl/clipcat/package.nix +++ b/pkgs/by-name/cl/clipcat/package.nix @@ -25,6 +25,8 @@ rustPlatform.buildRustPackage rec { # Fix compilation errors caused by stricter restrictions on unused code in Rust 1.89. # TODO: remove this patch after upstream fix it. ./dummy.patch + # https://github.com/xrelkd/clipcat/pull/871 + ./remove_unnecessary_parenthesis.patch ]; nativeBuildInputs = [ diff --git a/pkgs/by-name/cl/clipcat/remove_unnecessary_parenthesis.patch b/pkgs/by-name/cl/clipcat/remove_unnecessary_parenthesis.patch new file mode 100644 index 000000000000..54b8caa86c0c --- /dev/null +++ b/pkgs/by-name/cl/clipcat/remove_unnecessary_parenthesis.patch @@ -0,0 +1,22 @@ +From 76e3ce46eb930dbc51c3e7aeb832a9db6194fd34 Mon Sep 17 00:00:00 2001 +From: sandroid +Date: Sun, 9 Nov 2025 22:12:03 +0100 +Subject: [PATCH] fix(crates/server): remove unnecessary parentheses + +--- + crates/server/src/snippets/mod.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/crates/server/src/snippets/mod.rs b/crates/server/src/snippets/mod.rs +index 00759b1e..8a43c326 100644 +--- a/crates/server/src/snippets/mod.rs ++++ b/crates/server/src/snippets/mod.rs +@@ -39,7 +39,7 @@ async fn load(config: &config::SnippetConfig) -> HashMap