From fd54a9fab14fcd0969d520355e3a596f88a6a9ef Mon Sep 17 00:00:00 2001 From: Manuel Frischknecht Date: Sat, 16 May 2026 16:49:52 +0200 Subject: [PATCH] pigpio: fix build with modern GCC With C23, the `pigpio` is currently broken because of various underdefined function pointer argument lists. The upstream code hasn't been patched to fix this yet (as of today, the latest release is still v79 from 2021). Switching the build to `-std=gnu17` fixes this for now. --- pkgs/by-name/pi/pigpio/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/pi/pigpio/package.nix b/pkgs/by-name/pi/pigpio/package.nix index a106642e4931..9bd2683c82ec 100644 --- a/pkgs/by-name/pi/pigpio/package.nix +++ b/pkgs/by-name/pi/pigpio/package.nix @@ -26,6 +26,8 @@ mkDerivation rec { hash = "sha256-Z+SwUlBbtWtnbjTe0IghR3gIKS43ZziN0amYtmXy7HE="; }; + NIX_CFLAGS_COMPILE = "-std=gnu17"; + nativeBuildInputs = [ cmake ];