From 4df5e91bc6fc0fcbd8e6f1e8b7c8769d7eebb41a Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Fri, 9 Jan 2026 17:26:39 +0000 Subject: [PATCH] libedgetpu: fix building with GCC 15 --- pkgs/by-name/li/libedgetpu/cstdint.patch | 13 +++++++++++++ pkgs/by-name/li/libedgetpu/package.nix | 1 + 2 files changed, 14 insertions(+) create mode 100644 pkgs/by-name/li/libedgetpu/cstdint.patch diff --git a/pkgs/by-name/li/libedgetpu/cstdint.patch b/pkgs/by-name/li/libedgetpu/cstdint.patch new file mode 100644 index 000000000000..a27eb2ba1125 --- /dev/null +++ b/pkgs/by-name/li/libedgetpu/cstdint.patch @@ -0,0 +1,13 @@ +diff --git a/driver/usb/usb_device_interface.h b/driver/usb/usb_device_interface.h +index 238bca9..54f2f6e 100644 +--- a/driver/usb/usb_device_interface.h ++++ b/driver/usb/usb_device_interface.h +@@ -15,6 +15,8 @@ + #ifndef DARWINN_DRIVER_USB_USB_DEVICE_INTERFACE_H_ + #define DARWINN_DRIVER_USB_USB_DEVICE_INTERFACE_H_ + ++#include ++ + #include "port/array_slice.h" + #include "port/integral_types.h" + #include "port/status.h" diff --git a/pkgs/by-name/li/libedgetpu/package.nix b/pkgs/by-name/li/libedgetpu/package.nix index ef4e2368ea42..fc5911ffb120 100644 --- a/pkgs/by-name/li/libedgetpu/package.nix +++ b/pkgs/by-name/li/libedgetpu/package.nix @@ -42,6 +42,7 @@ stdenv.mkDerivation { hash = "sha256-mMODpQmikfXtsQvtgh26cy97EiykYNLngSjidOBt/3I="; }) ./fix-abseil-20250512.0.patch + ./cstdint.patch ]; postPatch = ''