at 24.11-pre 56 lines 1.2 kB view raw
1{ lib 2, pkgs 3, stdenv 4, fetchpatch 5, ninja 6, libusb1 7, meson 8, boost 9, fetchFromGitHub 10, pkg-config 11, microsoft-gsl 12}: 13 14stdenv.mkDerivation rec { 15 pname = "ite-backlight"; 16 version = "1.1"; 17 18 src = fetchFromGitHub { 19 owner = "hexagonal-sun"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "1hany4bn93mac9qyz97r1l858d48zdvvmn3mabzr3441ivqr9j0a"; 23 }; 24 25 nativeBuildInputs = [ 26 ninja 27 pkg-config 28 meson 29 microsoft-gsl 30 ]; 31 32 buildInputs = [ 33 boost 34 libusb1 35 ]; 36 37 patches = [ 38 (fetchpatch { 39 name = "fix-gcc13-build-failure.patch"; 40 url = "https://github.com/hexagonal-sun/ite-backlight/commit/dc8c19d4785d80cbe7a82869daee1f723d3f3fb2.patch"; 41 hash = "sha256-iTRTVy7qB2z1ip135b8k3RufTBzeJaP1wdrRWN9tPsU="; 42 }) 43 ]; 44 45 meta = with lib; { 46 description = "Commands to control ite-backlight devices"; 47 longDescription = '' 48 This project aims to provide a set of simple utilities for controlling ITE 8291 49 keyboard backlight controllers. 50 ''; 51 license = with licenses; [ mit ]; 52 homepage = "https://github.com/hexagonal-sun/ite-backlight"; 53 platforms = platforms.linux; 54 maintainers = with maintainers; [ hexagonal-sun ]; 55 }; 56}