3
0
Fork 0
forked from mirrors/nixpkgs

polychromatic: fix qt5 wrapper to contain all required libraries (#202449)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Fixes https://github.com/NixOS/nixpkgs/issues/200780
This commit is contained in:
Joshua Giacone 2022-11-27 17:26:24 -08:00 committed by GitHub
parent 4724d88a82
commit 3ccee00df1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,12 @@
, sassc
, python3Packages
, gobject-introspection
, gtk3
, wrapGAppsHook
, libappindicator-gtk3
, libxcb
, qt5
, ibus
, usbutils
}:
python3Packages.buildPythonApplication rec {
@ -28,11 +32,9 @@ python3Packages.buildPythonApplication rec {
postPatch = ''
patchShebangs scripts
substituteInPlace scripts/build-styles.sh \
--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"
'';
@ -40,7 +42,6 @@ python3Packages.buildPythonApplication rec {
preConfigure = ''
scripts/build-styles.sh
'';
nativeBuildInputs = with python3Packages; [
gettext
gobject-introspection
@ -48,18 +49,22 @@ python3Packages.buildPythonApplication rec {
ninja
sassc
wrapGAppsHook
qt5.wrapQtAppsHook
];
propagatedBuildInputs = with python3Packages; [
colorama
colour
gtk3
openrazer
pygobject3
pyqt5
pyqtwebengine
requests
setproctitle
libxcb
openrazer-daemon
libappindicator-gtk3
ibus
usbutils
];
dontWrapGapps = true;
@ -67,6 +72,7 @@ python3Packages.buildPythonApplication rec {
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
"\${qtWrapperArgs[@]}"
];
meta = with lib; {