polychromatic: cleanup dependencies

This commit is contained in:
Sandro Jäckel 2022-10-04 21:30:59 +02:00
parent 00e30f7ae0
commit 7a494b61e0
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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
openrazer
openrazer-daemon
requests
ibus
usbutils
pyqt5
libappindicator-gtk3
];
nativeBuildInputs = with python3Packages; [
pyqt5
desktop-file-utils
qt5.wrapQtAppsHook
wrapGAppsHook
ninja
meson
sassc
];
propagatedNativeBuildInputs = [
gobject-introspection
colour
gtk3
gdk-pixbuf
imagemagick
openrazer
pygobject3
pyqt5
pyqtwebengine
requests
setproctitle
];
dontWrapGapps = true;
dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
"\${gappsWrapperArgs[@]}"
];
meta = with lib; {