freerdp: wrap SDL2 client to use native wayland

Since X11 is the default https://wiki.libsdl.org/SDL2/FAQUsingSDL
This commit is contained in:
DeimElias
2025-12-19 02:11:27 +01:00
committed by Sandro Jäckel
parent 27bd47bd5b
commit 045fecff99
+7
View File
@@ -58,6 +58,7 @@
withUnfree ? false,
withWaylandSupport ? false,
withSDL2 ? false,
makeWrapper,
# tries to compile and run generate_argument_docbook.c
withManPages ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
@@ -104,6 +105,7 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
wayland-scanner
writableTmpDirAsHomeHook
makeWrapper
];
buildInputs = [
@@ -206,6 +208,11 @@ stdenv.mkDerivation (finalAttrs: {
]
);
postFixup = lib.optionalString (withWaylandSupport && withSDL2) ''
wrapProgram $out/bin/sdl2-freerdp \
--set SDL_VIDEODRIVER wayland
'';
passthru.tests = {
inherit remmina;
inherit gnome-remote-desktop;