From a324c70f6148a50d2a875cc9a471bafbcd1f1ce5 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Wed, 26 Mar 2025 10:50:35 +0530 Subject: [PATCH] openrgb: cleanup Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com> --- pkgs/by-name/op/openrgb/package.nix | 38 +++++++++++++++++------------ 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/op/openrgb/package.nix b/pkgs/by-name/op/openrgb/package.nix index 86545e2d62f0..e76fe97ac9a3 100644 --- a/pkgs/by-name/op/openrgb/package.nix +++ b/pkgs/by-name/op/openrgb/package.nix @@ -22,19 +22,27 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-XBLj4EfupyeVHRc0pVI7hrXFoCNJ7ak2yO0QSfhBsGU="; }; - nativeBuildInputs = with libsForQt5; [ - qmake - pkg-config - wrapQtAppsHook - ]; + nativeBuildInputs = + [ + pkg-config + ] + ++ (with libsForQt5; [ + qmake + wrapQtAppsHook + ]); - buildInputs = with libsForQt5; [ - libusb1 - hidapi - mbedtls_2 - qtbase - qttools - ]; + buildInputs = + [ + + libusb1 + hidapi + mbedtls_2 + ] + ++ (with libsForQt5; [ + qtbase + qttools + qtwayland + ]); postPatch = '' patchShebangs scripts/build-udev-rules.sh @@ -75,12 +83,12 @@ stdenv.mkDerivation (finalAttrs: { ]; }); - meta = with lib; { + meta = { description = "Open source RGB lighting control"; homepage = "https://gitlab.com/CalcProgrammer1/OpenRGB"; maintainers = [ ]; - license = licenses.gpl2Plus; - platforms = platforms.linux; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.linux; mainProgram = "openrgb"; }; })