polychromatic: cleanup dependencies
This commit is contained in:
parent
00e30f7ae0
commit
7a494b61e0
|
@ -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; {
|
||||||
|
|
Loading…
Reference in a new issue