openrgb-plugin-hardwaresync: build with Qt 6

This commit is contained in:
Marie Ramlow
2025-10-12 11:40:59 +02:00
parent 84cf4f7116
commit bd7c8d9538

View File

@@ -2,12 +2,13 @@
lib,
stdenv,
fetchFromGitLab,
libsForQt5,
openrgb,
glib,
libgtop,
lm_sensors,
pkg-config,
kdePackages,
fetchpatch,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -21,6 +22,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-3sQFiqmXhuavce/6v3XBpp6PAduY7t440nXfbfCX9a0=";
};
patches = [
# Fix Qt 6 build
(fetchpatch {
url = "https://gitlab.com/OpenRGBDevelopers/OpenRGBHardwareSyncPlugin/-/commit/62707c260953fb5ac2bb782595c18791bf54ff97.patch";
hash = "sha256-xMsnVyrn/Cv2x2xQtAnPb5HJc+WolNx4v7h0TkTj9DU=";
})
];
postPatch = ''
# Use the source of openrgb from nixpkgs instead of the submodule
rmdir OpenRGB
@@ -29,17 +38,17 @@ stdenv.mkDerivation (finalAttrs: {
rm -r dependencies/lhwm-cpp-wrapper
'';
buildInputs = with libsForQt5; [
qtbase
buildInputs = [
kdePackages.qtbase
glib
libgtop
lm_sensors
];
nativeBuildInputs = with libsForQt5; [
qmake
nativeBuildInputs = [
pkg-config
wrapQtAppsHook
kdePackages.qmake
kdePackages.wrapQtAppsHook
];
meta = with lib; {