mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
eb96603c38
removed the following patches as they are already present in the current version: df2869d679ea43119fb9b174cd0b2cb152022685 bfbaa0a32ed05112e0cc8b6b2a8229945596e522
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, qtbase
|
|
, openrgb
|
|
, glib
|
|
, libgtop
|
|
, lm_sensors
|
|
, qmake
|
|
, pkg-config
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openrgb-plugin-hardwaresync";
|
|
version = "0.9";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "OpenRGBDevelopers";
|
|
repo = "OpenRGBHardwareSyncPlugin";
|
|
rev = "release_${version}";
|
|
hash = "sha256-3sQFiqmXhuavce/6v3XBpp6PAduY7t440nXfbfCX9a0=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|