openrgb: build with Qt 6

This commit is contained in:
Marie Ramlow
2025-10-11 11:55:03 +02:00
parent 3362e3c6d7
commit 84cf4f7116
2 changed files with 27 additions and 4 deletions

View File

@@ -2,13 +2,13 @@
lib,
stdenv,
fetchFromGitLab,
libsForQt5,
libusb1,
hidapi,
pkg-config,
coreutils,
mbedtls,
symlinkJoin,
kdePackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -22,21 +22,24 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-XBLj4EfupyeVHRc0pVI7hrXFoCNJ7ak2yO0QSfhBsGU=";
};
patches = [
./qlist-include.patch
];
nativeBuildInputs = [
pkg-config
]
++ (with libsForQt5; [
++ (with kdePackages; [
qmake
wrapQtAppsHook
]);
buildInputs = [
libusb1
hidapi
mbedtls
]
++ (with libsForQt5; [
++ (with kdePackages; [
qtbase
qttools
qtwayland
@@ -57,6 +60,10 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstallCheck
'';
qmakeFlags = [
"QT_TOOL.lrelease.binary=${lib.getDev kdePackages.qttools}/bin/lrelease"
];
passthru.withPlugins =
plugins:
let

View File

@@ -0,0 +1,16 @@
Commit ID: 2fa7aa0ec87d9878293033db0e86bb62cddc47df
Change ID: mvrytuwvnokxyvmuworxptmtqpqpppxq
Author : Marie Ramlow <me@nycode.dev> (2025-10-11 12:10:21)
Committer: Marie Ramlow <me@nycode.dev> (2025-10-11 12:17:20)
OpenRGBFont: add QList include
diff --git a/qt/OpenRGBFont.cpp b/qt/OpenRGBFont.cpp
index 628bd35281..db1ab5fb76 100644
--- a/qt/OpenRGBFont.cpp
+++ b/qt/OpenRGBFont.cpp
@@ -1,3 +1,4 @@
+#include <QStringList>
#include "OpenRGBFont.h"
#include <QFontDatabase>