Merge pull request #194470 from SuperSandro2000/polychromatic-cleanup
polychromatic: cleanup dependencies
This commit is contained in:
commit
5ee6c04206
1 changed files with 21 additions and 46 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue