From bd7c8d953833d9515457708db73570d3bc76911b Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Sun, 12 Oct 2025 11:40:59 +0200 Subject: [PATCH] openrgb-plugin-hardwaresync: build with Qt 6 --- .../openrgb-plugin-hardwaresync/package.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/op/openrgb-plugin-hardwaresync/package.nix b/pkgs/by-name/op/openrgb-plugin-hardwaresync/package.nix index 970c0d38a059..433eb4fc8bdc 100644 --- a/pkgs/by-name/op/openrgb-plugin-hardwaresync/package.nix +++ b/pkgs/by-name/op/openrgb-plugin-hardwaresync/package.nix @@ -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; {