mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 03:04:14 +01:00
wlroots: fix build on FreeBSD
This commit is contained in:
parent
4c60d76395
commit
cebe295fc8
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue