1
0
Fork 0
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:
Ben Wolsieffer 2022-11-10 15:23:24 -05:00
parent 6fa03dc558
commit d3c90ec939

View file

@ -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;