rviz2: Use X11 by default

https://github.com/ros-visualization/rviz/issues/1442
This commit is contained in:
hacker1024 2023-09-12 16:11:41 +10:00 committed by Ben Wolsieffer
parent d31e04aef7
commit 7b7878d27c

View file

@ -153,10 +153,15 @@ rosSelf: rosSuper: with rosSelf.lib; {
});
rviz2 = rosSuper.rviz2.overrideAttrs ({
nativeBuildInputs ? [], postFixup ? "", meta ? {}, ...
nativeBuildInputs ? [], qtWrapperArgs ? [], postFixup ? "", meta ? {}, ...
}: {
dontWrapQtApps = false;
nativeBuildInputs = nativeBuildInputs ++ [ self.qt5.wrapQtAppsHook ];
qtWrapperArgs = qtWrapperArgs ++ [
# Use X11 by default in RViz2.
# https://github.com/ros-visualization/rviz/issues/1442
"--set-default QT_QPA_PLATFORM xcb"
];
postFixup = postFixup + ''
wrapQtApp "$out/lib/rviz2/rviz2"
'';