1 { lib, mkDerivation, fetchFromGitLab, qmake, libusb1, hidapi, pkg-config, coreutils, mbedtls }:
7 src = fetchFromGitLab {
8 owner = "CalcProgrammer1";
10 rev = "release_${version}";
11 sha256 = "0xhfaz0b74nfnh7il2cz5c0338xlzay00g6hc2h3lsncarj8d5n7";
14 nativeBuildInputs = [ qmake pkg-config ];
15 buildInputs = [ libusb1 hidapi mbedtls ];
23 substituteInPlace 60-openrgb.rules \
24 --replace /bin/chmod "${coreutils}/bin/chmod"
26 mkdir -p $out/etc/udev/rules.d
27 cp 60-openrgb.rules $out/etc/udev/rules.d
29 install -Dm444 -t "$out/share/applications" qt/OpenRGB.desktop
30 install -Dm444 -t "$out/share/icons/hicolor/128x128/apps" qt/OpenRGB.png
35 doInstallCheck = true;
36 installCheckPhase = ''
37 HOME=$TMPDIR $out/bin/openrgb --help > /dev/null
41 description = "Open source RGB lighting control";
42 homepage = "https://gitlab.com/CalcProgrammer1/OpenRGB";
43 maintainers = with maintainers; [ jonringer ];
44 license = licenses.gpl2Plus;
45 platforms = platforms.linux;