diff options
| author | DeimElias <deimelias@gmail.com> | 2025-12-07 23:24:49 -0600 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2026-01-17 18:27:01 +0000 |
| commit | 65060e5ed5bfc39532f6d682a77f24bdac3a5755 (patch) | |
| tree | 6df5fc447d7439bef2188ca42804606dc20b18ab | |
| parent | d17afac85d131d7f59d22023ddde314b470ef6d5 (diff) | |
freerdp: add wayland flag option
(cherry picked from commit 27bd47bd5ba3885b701fe5b290c5070b87f2a49b)
| -rw-r--r-- | pkgs/by-name/fr/freerdp/package.nix | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/pkgs/by-name/fr/freerdp/package.nix b/pkgs/by-name/fr/freerdp/package.nix index 201ecbb7b6be..abd837005833 100644 --- a/pkgs/by-name/fr/freerdp/package.nix +++ b/pkgs/by-name/fr/freerdp/package.nix @@ -56,6 +56,7 @@ buildServer ? true, nocaps ? false, withUnfree ? false, + withWaylandSupport ? false, withSDL2 ? false, # tries to compile and run generate_argument_docbook.c @@ -166,26 +167,32 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib") (lib.cmakeFeature "DOCBOOKXSL_DIR" "${docbook-xsl-nons}/xml/xsl/docbook") ] - ++ lib.mapAttrsToList lib.cmakeBool { - BUILD_TESTING = false; # false is recommended by upstream - WITH_CAIRO = cairo != null; - WITH_CUPS = cups != null; - WITH_FAAC = withUnfree && faac != null; - WITH_FAAD2 = faad2 != null; - WITH_FUSE = stdenv.hostPlatform.isLinux && fuse3 != null; - WITH_JPEG = libjpeg_turbo != null; - WITH_KRB5 = libkrb5 != null; - WITH_OPENH264 = openh264 != null; - WITH_OPUS = libopus != null; - WITH_OSS = false; - WITH_MANPAGES = withManPages; - WITH_PCSC = pcsclite != null; - WITH_PULSE = libpulseaudio != null; - WITH_SERVER = buildServer; - WITH_WEBVIEW = false; # avoid introducing webkit2gtk-4.0 - WITH_VAAPI = false; # false is recommended by upstream - WITH_X11 = true; - } + ++ lib.mapAttrsToList lib.cmakeBool ( + { + BUILD_TESTING = false; # false is recommended by upstream + WITH_CAIRO = cairo != null; + WITH_CUPS = cups != null; + WITH_FAAC = withUnfree && faac != null; + WITH_FAAD2 = faad2 != null; + WITH_FUSE = stdenv.hostPlatform.isLinux && fuse3 != null; + WITH_JPEG = libjpeg_turbo != null; + WITH_KRB5 = libkrb5 != null; + WITH_OPENH264 = openh264 != null; + WITH_OPUS = libopus != null; + WITH_OSS = false; + WITH_MANPAGES = withManPages; + WITH_PCSC = pcsclite != null; + WITH_PULSE = libpulseaudio != null; + WITH_SERVER = buildServer; + WITH_WEBVIEW = false; # avoid introducing webkit2gtk-4.0 + WITH_VAAPI = false; # false is recommended by upstream + } + // lib.filterAttrs (name: value: value) { + # Only select one + WITH_X11 = !withWaylandSupport; + WITH_WAYLAND = withWaylandSupport; + } + ) ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ (lib.cmakeBool "SDL_USE_COMPILED_RESOURCES" false) ]; |
