diff options
| author | DeimElias <deimelias@gmail.com> | 2025-12-09 00:24:53 -0600 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2026-01-17 18:27:01 +0000 |
| commit | 40fb154fb9f8149cb3935bc013910a2704912d82 (patch) | |
| tree | ee75892c65050218c7fc218775d65340fee87a86 | |
| parent | 65060e5ed5bfc39532f6d682a77f24bdac3a5755 (diff) | |
freerdp: wrap SDL2 client to use native wayland
Since X11 is the default https://wiki.libsdl.org/SDL2/FAQUsingSDL
(cherry picked from commit 045fecff99630ec381f8c271356aa04ac622c64e)
| -rw-r--r-- | pkgs/by-name/fr/freerdp/package.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/by-name/fr/freerdp/package.nix b/pkgs/by-name/fr/freerdp/package.nix index abd837005833..ed58757fa33f 100644 --- a/pkgs/by-name/fr/freerdp/package.nix +++ b/pkgs/by-name/fr/freerdp/package.nix @@ -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; |
