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
This commit is contained in:
Manuel Frischknecht 2024-02-08 22:59:19 +00:00
parent 3688a3431f
commit faa40966a0

View File

@ -1,6 +1,7 @@
{ lib { lib
, pkgs , pkgs
, stdenv , stdenv
, fetchpatch
, ninja , ninja
, libusb1 , libusb1
, meson , meson
@ -33,6 +34,14 @@ stdenv.mkDerivation rec {
libusb1 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; { meta = with lib; {
description = "Commands to control ite-backlight devices"; description = "Commands to control ite-backlight devices";
longDescription = '' longDescription = ''