mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-12 02:34:50 +03:00
rviz2: Use X11 by default
https://github.com/ros-visualization/rviz/issues/1442
This commit is contained in:
parent
d31e04aef7
commit
7b7878d27c
1 changed files with 6 additions and 1 deletions
|
@ -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"
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue