diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/openrgb-plugins')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/openrgb-plugins/effects/default.nix | 50 | ||||
-rw-r--r-- | nixpkgs/pkgs/applications/misc/openrgb-plugins/hardwaresync/default.nix | 53 |
2 files changed, 103 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/openrgb-plugins/effects/default.nix b/nixpkgs/pkgs/applications/misc/openrgb-plugins/effects/default.nix new file mode 100644 index 000000000000..01ff20071516 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/openrgb-plugins/effects/default.nix @@ -0,0 +1,50 @@ +{ lib +, stdenv +, fetchFromGitLab +, qtbase +, openrgb +, glib +, openal +, qmake +, pkg-config +, wrapQtAppsHook +}: + +stdenv.mkDerivation rec { + pname = "openrgb-plugin-effects"; + version = "0.9"; + + src = fetchFromGitLab { + owner = "OpenRGBDevelopers"; + repo = "OpenRGBEffectsPlugin"; + rev = "release_${version}"; + hash = "sha256-8BnHifcFf7ESJgJi/q3ca38zuIVa++BoGlkWxj7gpog="; + fetchSubmodules = true; + }; + + postPatch = '' + # Use the source of openrgb from nixpkgs instead of the submodule + rm -r OpenRGB + ln -s ${openrgb.src} OpenRGB + ''; + + nativeBuildInputs = [ + qmake + pkg-config + wrapQtAppsHook + ]; + + buildInputs = [ + qtbase + glib + openal + ]; + + meta = with lib; { + homepage = "https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin"; + description = "An effects plugin for OpenRGB"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ fgaz ]; + platforms = platforms.linux; + }; +} diff --git a/nixpkgs/pkgs/applications/misc/openrgb-plugins/hardwaresync/default.nix b/nixpkgs/pkgs/applications/misc/openrgb-plugins/hardwaresync/default.nix new file mode 100644 index 000000000000..5d0c4e966128 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/openrgb-plugins/hardwaresync/default.nix @@ -0,0 +1,53 @@ +{ 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; + }; +} |