Unverified Commit 2c96c57f authored by Ryan Omasta's avatar Ryan Omasta
Browse files

wiringpi: fix build with gcc15

parent 3a63ddd3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -25,6 +25,10 @@ let
      inherit version src;
      sourceRoot = "${src.name}/${subprj}";
      inherit buildInputs;

      # Fix build with gcc 15
      env.NIX_CFLAGS_COMPILE = "-std=gnu17";

      # Remove (meant for other OSs) lines from Makefiles
      preInstall = ''
        sed -i "/chown root/d" Makefile