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; {