2023-02-22 10:55:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, qtbase
|
|
|
|
, openrgb
|
|
|
|
, glib
|
|
|
|
, libgtop
|
|
|
|
, lm_sensors
|
|
|
|
, qmake
|
|
|
|
, pkg-config
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openrgb-plugin-hardwaresync";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.9";
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "OpenRGBDevelopers";
|
|
|
|
repo = "OpenRGBHardwareSyncPlugin";
|
|
|
|
rev = "release_${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-3sQFiqmXhuavce/6v3XBpp6PAduY7t440nXfbfCX9a0=";
|
2023-02-22 10:55:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Use the source of openrgb from nixpkgs instead of the submodule
|
|
|
|
rmdir OpenRGB
|
|
|
|
ln -s ${openrgb.src} OpenRGB
|
|
|
|
# Remove prebuilt stuff
|
|
|
|
rm -r dependencies/lhwm-cpp-wrapper
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
glib
|
|
|
|
libgtop
|
|
|
|
lm_sensors
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.com/OpenRGBDevelopers/OpenRGBHardwareSyncPlugin";
|
|
|
|
description = "Sync your ARGB devices colors with hardware measures (CPU, GPU, fan speed, etc...)";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|