fltk14: add wayland support
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user