openrgb-plugin-hardwaresync: build with Qt 6
This commit is contained in:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user