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; }; })