freerdp: wrap SDL2 client to use native wayland
Since X11 is the default https://wiki.libsdl.org/SDL2/FAQUsingSDL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user