From faa40966a05448299462d6994cd2dfd3a3710985 Mon Sep 17 00:00:00 2001 From: Manuel Frischknecht Date: Thu, 8 Feb 2024 22:59:19 +0000 Subject: [PATCH] ite-backlight: fix build issues with GCC 13 GCC 13 stopped transitively including some headers (such as `cstdint`) in various scenarios, causing the build of `ite-backlight` to fail on nixos-unstable. This change temporarily pulls in a commit from an open upstream PR [1] that fixes the mentioned build issue via `fetchpatch` until said PR gets merged. [1]: https://github.com/hexagonal-sun/ite-backlight/pull/2 --- pkgs/misc/ite-backlight/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/misc/ite-backlight/default.nix b/pkgs/misc/ite-backlight/default.nix index aa53ecabff34..376c4c409ca0 100644 --- a/pkgs/misc/ite-backlight/default.nix +++ b/pkgs/misc/ite-backlight/default.nix @@ -1,6 +1,7 @@ { lib , pkgs , stdenv +, fetchpatch , ninja , libusb1 , meson @@ -33,6 +34,14 @@ stdenv.mkDerivation rec { libusb1 ]; + patches = [ + (fetchpatch { + name = "fix-gcc13-build-failure.patch"; + url = "https://github.com/hexagonal-sun/ite-backlight/commit/dc8c19d4785d80cbe7a82869daee1f723d3f3fb2.patch"; + hash = "sha256-iTRTVy7qB2z1ip135b8k3RufTBzeJaP1wdrRWN9tPsU="; + }) + ]; + meta = with lib; { description = "Commands to control ite-backlight devices"; longDescription = ''