From 8ffdf759545d4466d0279b255c3402f655603bfb Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Wed, 18 Feb 2026 16:18:41 -0500 Subject: [PATCH] xwayland: fix build on FreeBSD --- pkgs/by-name/xw/xwayland/package.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/xw/xwayland/package.nix b/pkgs/by-name/xw/xwayland/package.nix index 4b609786d314..23702f67bc55 100644 --- a/pkgs/by-name/xw/xwayland/package.nix +++ b/pkgs/by-name/xw/xwayland/package.nix @@ -1,6 +1,8 @@ { dri-pkgconfig-stub, egl-wayland, + epoll-shim, + evdev-proto, bash, libepoxy, fetchurl, @@ -98,7 +100,6 @@ stdenv.mkDerivation (finalAttrs: { libxres libxt libdrm - libtirpc libxcb libxkbfile libxshmfence @@ -106,7 +107,6 @@ stdenv.mkDerivation (finalAttrs: { mesa-gl-headers openssl pixman - systemd wayland wayland-protocols xkbcomp @@ -114,6 +114,14 @@ stdenv.mkDerivation (finalAttrs: { xtrans zlib ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + libtirpc + systemd + ] + ++ lib.optionals stdenv.hostPlatform.isFreeBSD [ + epoll-shim + evdev-proto + ] ++ lib.optionals withLibunwind [ libunwind ]; @@ -141,6 +149,6 @@ stdenv.mkDerivation (finalAttrs: { emantor k900 ]; - platforms = lib.platforms.linux; + platforms = lib.platforms.linux ++ lib.platforms.freebsd; }; })