diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-10-04 21:30:59 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-10-04 21:31:27 +0200 |
commit | 7a494b61e070fd27afc502970eaef87fe6cb27a2 (patch) | |
tree | 6748e6fbb6e807c306e79d511900f3a2cb9f0cd9 /pkgs/applications/misc/polychromatic | |
parent | 00e30f7ae076f6d27d047895b42f133ed02f23fd (diff) |
polychromatic: cleanup dependencies
Diffstat (limited to 'pkgs/applications/misc/polychromatic')
-rw-r--r-- | pkgs/applications/misc/polychromatic/default.nix | 63 |
1 files changed, 19 insertions, 44 deletions
diff --git a/pkgs/applications/misc/polychromatic/default.nix b/pkgs/applications/misc/polychromatic/default.nix index f27902a8aac76..fc6b6a1e2d4a5 100644 --- a/pkgs/applications/misc/polychromatic/default.nix +++ b/pkgs/applications/misc/polychromatic/default.nix @@ -1,30 +1,22 @@ { lib , fetchFromGitHub , bash -, cairo , glib -, qt5 -, hicolor-icon-theme , gdk-pixbuf +, gettext , imagemagick -, desktop-file-utils , ninja , meson , sassc -, ibus -, usbutils -, libxcb , python3Packages , gobject-introspection , gtk3 , wrapGAppsHook -, libappindicator-gtk3 }: python3Packages.buildPythonApplication rec { name = "polychromatic"; version = "0.7.3"; - format = "other"; src = fetchFromGitHub { @@ -41,57 +33,40 @@ python3Packages.buildPythonApplication rec { --replace '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \ --replace '$(which sass 2>/dev/null)' '${sassc}/bin/sass' - substituteInPlace pylib/common.py --replace "/usr/share/polychromatic" "$out/share/polychromatic" + substituteInPlace pylib/common.py \ + --replace "/usr/share/polychromatic" "$out/share/polychromatic" ''; preConfigure = '' scripts/build-styles.sh ''; - buildInputs = [ - cairo - hicolor-icon-theme - ]; - - pythonPath = with python3Packages; [ - openrazer - pyqt5 - pyqtwebengine + nativeBuildInputs = with python3Packages; [ + gettext + gobject-introspection + meson + ninja + sassc + wrapGAppsHook ]; propagatedBuildInputs = with python3Packages; [ - libxcb - colour colorama - setproctitle + colour + gtk3 openrazer - openrazer-daemon - requests - ibus - usbutils - pyqt5 - libappindicator-gtk3 - ]; - - nativeBuildInputs = with python3Packages; [ + pygobject3 pyqt5 - desktop-file-utils - qt5.wrapQtAppsHook - wrapGAppsHook - ninja - meson - sassc + pyqtwebengine + requests + setproctitle ]; - propagatedNativeBuildInputs = [ - gobject-introspection - gtk3 - gdk-pixbuf - imagemagick - ]; + dontWrapGapps = true; + dontWrapQtApps = true; makeWrapperArgs = [ - "\${qtWrapperArgs[@]}" + "\${gappsWrapperArgs[@]}" ]; meta = with lib; { |