From 17f0d867e6aa4c7ec72830b27ab0ea1a1c19ea54 Mon Sep 17 00:00:00 2001 From: Manuel Frischknecht Date: Fri, 6 Feb 2026 20:10:48 +0100 Subject: [PATCH] synergy: fix missing include to The upgrade to GCC 15 broke the build because `cstdint` isn't getting transitively included via some other headers anymore [1]. This has been fixed in newer 1.x versions of synergy, but those include some more drastic changes that would need to be addressed in Nixpkgs (such as, at least, in the NixOS and nix-darwin synergy modules). I've opened a PR for the update here [2], but this patch is a simpler quick fix we can implement before that's sorted out. [1]: https://gcc.gnu.org/gcc-15/porting_to.html#header-dep-changes [2]: https://github.com/NixOS/nixpkgs/pull/486784 --- pkgs/by-name/sy/synergy/include_cstdint.patch | 12 ++++++++++++ pkgs/by-name/sy/synergy/package.nix | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/by-name/sy/synergy/include_cstdint.patch diff --git a/pkgs/by-name/sy/synergy/include_cstdint.patch b/pkgs/by-name/sy/synergy/include_cstdint.patch new file mode 100644 index 000000000000..e597751c1b3a --- /dev/null +++ b/pkgs/by-name/sy/synergy/include_cstdint.patch @@ -0,0 +1,12 @@ +diff --git a/src/lib/server/InputFilter.cpp b/src/lib/server/InputFilter.cpp +index da29f5b..65c500f 100755 +--- a/src/lib/server/InputFilter.cpp ++++ b/src/lib/server/InputFilter.cpp +@@ -26,6 +26,7 @@ + + #include + #include ++#include + + // ----------------------------------------------------------------------------- + // Input Filter Condition Classes diff --git a/pkgs/by-name/sy/synergy/package.nix b/pkgs/by-name/sy/synergy/package.nix index 37e95f1340e1..4d7917d4f9f3 100644 --- a/pkgs/by-name/sy/synergy/package.nix +++ b/pkgs/by-name/sy/synergy/package.nix @@ -42,6 +42,10 @@ stdenv.mkDerivation (finalAttrs: { patches = [ # Without this OpenSSL from nixpkgs is not detected ./darwin-non-static-openssl.patch + + # This missing include broke the build on GCC 15 + # This can be removed once we switch to a newer version + ./include_cstdint.patch ]; postPatch = ''