Merge pull request #194470 from SuperSandro2000/polychromatic-cleanup

polychromatic: cleanup dependencies
This commit is contained in:
Christian Kögler 2022-10-14 22:41:26 +02:00 committed by GitHub
commit 5ee6c04206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,30 +1,22 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, bash , bash
, cairo
, glib , glib
, qt5
, hicolor-icon-theme
, gdk-pixbuf , gdk-pixbuf
, gettext
, imagemagick , imagemagick
, desktop-file-utils
, ninja , ninja
, meson , meson
, sassc , sassc
, ibus
, usbutils
, libxcb
, python3Packages , python3Packages
, gobject-introspection , gobject-introspection
, gtk3 , gtk3
, wrapGAppsHook , wrapGAppsHook
, libappindicator-gtk3
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
name = "polychromatic"; name = "polychromatic";
version = "0.7.3"; version = "0.7.3";
format = "other"; format = "other";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -41,57 +33,40 @@ python3Packages.buildPythonApplication rec {
--replace '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \ --replace '$(which sassc 2>/dev/null)' '${sassc}/bin/sassc' \
--replace '$(which sass 2>/dev/null)' '${sassc}/bin/sass' --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 = '' preConfigure = ''
scripts/build-styles.sh scripts/build-styles.sh
''; '';
buildInputs = [ nativeBuildInputs = with python3Packages; [
cairo gettext
hicolor-icon-theme gobject-introspection
]; meson
ninja
pythonPath = with python3Packages; [ sassc
openrazer wrapGAppsHook
pyqt5
pyqtwebengine
]; ];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
libxcb
colour
colorama colorama
setproctitle colour
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
gtk3 gtk3
gdk-pixbuf openrazer
imagemagick pygobject3
pyqt5
pyqtwebengine
requests
setproctitle
]; ];
dontWrapGapps = true;
dontWrapQtApps = true;
makeWrapperArgs = [ makeWrapperArgs = [
"\${qtWrapperArgs[@]}" "\${gappsWrapperArgs[@]}"
]; ];
meta = with lib; { meta = with lib; {