Unverified Commit 045fecff authored by DeimElias's avatar DeimElias Committed by Sandro Jäckel
Browse files

freerdp: wrap SDL2 client to use native wayland

Since X11 is the default https://wiki.libsdl.org/SDL2/FAQUsingSDL
parent 27bd47bd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;