mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-07-14 06:00:38 +03:00
qt-gui-cpp: replace SIP 4 with Shiboken to fix build
Qt5 is no longer compatible with SIP 4.
This commit is contained in:
parent
6fa03dc558
commit
d3c90ec939
1 changed files with 4 additions and 6 deletions
|
@ -178,12 +178,10 @@ let
|
|||
propagatedNativeBuildInputs ? [],
|
||||
postPatch ? "", ...
|
||||
}: {
|
||||
propagatedNativeBuildInputs = propagatedNativeBuildInputs ++ [ rosSelf.pythonPackages.sip_4 ];
|
||||
postPatch = ''
|
||||
sed -e "1 i\\import PyQt5" \
|
||||
-e "s#sipconfig\._pkg_config\['default_mod_dir'\], 'PyQt5'#PyQt5.__path__[0]#" \
|
||||
-i cmake/sip_configure.py
|
||||
'' + postPatch;
|
||||
propagatedNativeBuildInputs = propagatedNativeBuildInputs ++ (with rosSelf.pythonPackages; [
|
||||
shiboken2
|
||||
pyside2
|
||||
]);
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue