From 252bb01d91fbbc534aa6d7f382071746f16090ce Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Fri, 26 Sep 2025 12:56:44 +0200 Subject: [PATCH] fltk14: add wayland support --- pkgs/development/libraries/fltk/1.4.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkgs/development/libraries/fltk/1.4.nix b/pkgs/development/libraries/fltk/1.4.nix index 8315d580a191..a1662eeb665c 100644 --- a/pkgs/development/libraries/fltk/1.4.nix +++ b/pkgs/development/libraries/fltk/1.4.nix @@ -34,12 +34,21 @@ withXorg ? stdenv.hostPlatform.isLinux, + withWayland ? stdenv.hostPlatform.isLinux && withCairo, + wayland, + wayland-protocols, + libxkbcommon, + wayland-scanner, + withExamples ? (stdenv.buildPlatform == stdenv.hostPlatform), }: # pango support depends on Xft assert withPango -> withXorg; +# wayland support depends on cairo +assert withWayland -> withCairo; + stdenv.mkDerivation (finalAttrs: { pname = "fltk"; version = "1.4.4"; @@ -64,6 +73,9 @@ stdenv.mkDerivation (finalAttrs: { cmake pkg-config ] + ++ lib.optionals withWayland [ + wayland-scanner + ] ++ lib.optionals withDocs [ doxygen graphviz @@ -98,6 +110,11 @@ stdenv.mkDerivation (finalAttrs: { libXft libXrender ] + ++ lib.optionals withWayland [ + wayland + wayland-protocols + libxkbcommon + ] ++ lib.optionals withCairo [ cairo ] @@ -120,6 +137,9 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "FLTK_USE_XFT" withXorg) (lib.cmakeBool "FLTK_USE_XRENDER" withXorg) + # Wayland + (lib.cmakeBool "FLTK_BACKEND_WAYLAND" withWayland) + # GL (lib.cmakeBool "FLTK_BUILD_GL" withGL)