diff options
Diffstat (limited to 'pkgs/applications/misc/polychromatic/default.nix')
-rw-r--r-- | pkgs/applications/misc/polychromatic/default.nix | 69 |
1 files changed, 37 insertions, 32 deletions
diff --git a/pkgs/applications/misc/polychromatic/default.nix b/pkgs/applications/misc/polychromatic/default.nix index f940f5a4af803..24ff669e4f22a 100644 --- a/pkgs/applications/misc/polychromatic/default.nix +++ b/pkgs/applications/misc/polychromatic/default.nix @@ -1,73 +1,77 @@ -{ lib -, fetchFromGitHub -, bash -, glib -, gdk-pixbuf -, gettext -, imagemagick -, ninja -, meson -, sassc -, python3Packages -, gobject-introspection -, wrapGAppsHook -, libappindicator-gtk3 -, libxcb -, qt5 -, ibus -, usbutils +{ + lib, + fetchFromGitHub, + gettext, + ninja, + meson, + sassc, + python3Packages, + gobject-introspection, + wrapGAppsHook3, + libayatana-appindicator, + libxcb, + qt6, + ibus, + usbutils, + psmisc, }: python3Packages.buildPythonApplication rec { - name = "polychromatic"; - version = "0.8.0"; + pname = "polychromatic"; + version = "0.9.1"; format = "other"; src = fetchFromGitHub { owner = "polychromatic"; repo = "polychromatic"; rev = "v${version}"; - sha256 = "sha256-ym2pcGUWM5zCUx/lYs+WECj+wbyBtWnx04W/NRXNKlw="; + hash = "sha256-3Pt1Z8G0xDWlFD7LxJILPUifMBTN4OvPNHZv80umO1s="; }; postPatch = '' patchShebangs scripts substituteInPlace scripts/build-styles.sh \ - --replace '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \ - --replace '$(which sass 2>/dev/null)' '${sassc}/bin/sass' + --replace-fail '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \ + --replace-fail '$(which sass 2>/dev/null)' '${sassc}/bin/sass' substituteInPlace polychromatic/paths.py \ - --replace "/usr/share/polychromatic" "$out/share/polychromatic" + --replace-fail "/usr/share/polychromatic" "$out/share/polychromatic" ''; preConfigure = '' scripts/build-styles.sh ''; - nativeBuildInputs = with python3Packages; [ + + nativeBuildInputs = [ gettext gobject-introspection meson ninja sassc - wrapGAppsHook - qt5.wrapQtAppsHook + wrapGAppsHook3 + qt6.wrapQtAppsHook + qt6.qtbase ]; + buildInputs = [ qt6.qtwayland ]; + propagatedBuildInputs = with python3Packages; [ colorama colour openrazer - pyqt5 - pyqtwebengine + pyqt6 + pyqt6-webengine requests setproctitle libxcb openrazer-daemon - libappindicator-gtk3 ibus usbutils + ] ++ [ + libayatana-appindicator + psmisc ]; - dontWrapGapps = true; + dontWrapGApps = true; dontWrapQtApps = true; makeWrapperArgs = [ @@ -77,7 +81,7 @@ python3Packages.buildPythonApplication rec { meta = with lib; { homepage = "https://polychromatic.app/"; - description = "Graphical front-end and tray applet for configuring Razer peripherals on GNU/Linux."; + description = "Graphical front-end and tray applet for configuring Razer peripherals on GNU/Linux"; longDescription = '' Polychromatic is a frontend for OpenRazer that enables Razer devices to control lighting effects and more on GNU/Linux. @@ -85,5 +89,6 @@ python3Packages.buildPythonApplication rec { license = licenses.gpl3; platforms = platforms.linux; maintainers = with maintainers; [ evanjs ]; + mainProgram = "polychromatic-controller"; }; } |