diff --git a/pkgs/development/libraries/wlroots/default.nix b/pkgs/development/libraries/wlroots/default.nix index 88b6304871ed..d59d4fcb5c57 100644 --- a/pkgs/development/libraries/wlroots/default.nix +++ b/pkgs/development/libraries/wlroots/default.nix @@ -27,6 +27,7 @@ libliftoff, libdisplay-info, lcms2, + evdev-proto, nixosTests, testers, @@ -88,7 +89,6 @@ let libliftoff libdisplay-info libGL - libcap libxkbcommon libgbm pixman @@ -102,11 +102,17 @@ let libxcb-render-util libxcb-wm ] + ++ lib.optional stdenv.hostPlatform.isLinux libcap + ++ lib.optional stdenv.hostPlatform.isFreeBSD evdev-proto ++ lib.optional finalAttrs.enableXWayland xwayland ++ extraBuildInputs; mesonFlags = [ (lib.mesonEnable "xwayland" finalAttrs.enableXWayland) + ] + # The other allocator, udmabuf, is a linux-specific API + ++ lib.optionals (!stdenv.hostPlatform.isLinux) [ + (lib.mesonOption "allocators" "gbm") ]; postFixup = '' @@ -138,7 +144,7 @@ let inherit (finalAttrs.src.meta) homepage; changelog = "https://gitlab.freedesktop.org/wlroots/wlroots/-/tags/${version}"; license = lib.licenses.mit; - platforms = lib.platforms.linux; + platforms = lib.platforms.linux ++ lib.platforms.freebsd; maintainers = with lib.maintainers; [ synthetica wineee