nixpkgs/pkgs/servers/x11/xorg/xwayland.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

127 lines
2.2 KiB
Nix
Raw Normal View History

{ egl-wayland
, libepoxy
, fetchurl
, fontutil
, lib
, libei
, libGL
, libGLU
, libX11
, libXau
, libXaw
, libXdmcp
, libXext
, libXfixes
, libXfont2
, libXmu
, libXpm
, libXrender
, libXres
, libXt
, libdrm
, libtirpc
, withLibunwind ? true, libunwind
, libxcb
, libxkbfile
, libxshmfence
2022-02-21 09:48:56 +00:00
, libxcvt
, mesa
, meson
, ninja
, openssl
, pkg-config
, pixman
, stdenv
, wayland
, wayland-protocols
2021-07-03 14:45:54 +01:00
, wayland-scanner
, xkbcomp
, xkeyboard_config
, xorgproto
, xtrans
, zlib
, defaultFontPath ? ""
, gitUpdater
}:
2014-11-20 06:37:19 +00:00
stdenv.mkDerivation rec {
pname = "xwayland";
version = "23.2.3";
src = fetchurl {
url = "mirror://xorg/individual/xserver/${pname}-${version}.tar.xz";
sha256 = "sha256-652apyMsR0EsiDXsFal8V18DVjcmx4d1T/DAGb0H4wI=";
};
2021-07-03 14:45:54 +01:00
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
pkg-config
meson
ninja
wayland-scanner
];
buildInputs = [
egl-wayland
libepoxy
libei
fontutil
libGL
libGLU
libX11
libXau
libXaw
libXdmcp
libXext
libXfixes
libXfont2
libXmu
libXpm
libXrender
libXres
libXt
libdrm
libtirpc
libxcb
libxkbfile
libxshmfence
2022-02-21 09:48:56 +00:00
libxcvt
mesa
openssl
pixman
wayland
wayland-protocols
xkbcomp
xorgproto
xtrans
zlib
] ++ lib.optionals withLibunwind [
libunwind
];
mesonFlags = [
2023-02-13 17:27:53 +00:00
(lib.mesonBool "xwayland_eglstream" true)
(lib.mesonBool "xcsecurity" true)
2023-02-13 17:27:53 +00:00
(lib.mesonOption "default_font_path" defaultFontPath)
(lib.mesonOption "xkb_bin_dir" "${xkbcomp}/bin")
(lib.mesonOption "xkb_dir" "${xkeyboard_config}/etc/X11/xkb")
(lib.mesonOption "xkb_output_dir" "${placeholder "out"}/share/X11/xkb/compiled")
(lib.mesonBool "libunwind" withLibunwind)
2014-11-20 06:37:19 +00:00
];
passthru.updateScript = gitUpdater {
# No nicer place to find latest release.
url = "https://gitlab.freedesktop.org/xorg/xserver.git";
rev-prefix = "xwayland-";
};
meta = with lib; {
2014-11-20 06:37:19 +00:00
description = "An X server for interfacing X11 apps with the Wayland protocol";
homepage = "https://wayland.freedesktop.org/xserver.html";
2014-11-20 06:37:19 +00:00
license = licenses.mit;
2023-05-27 14:26:40 +01:00
mainProgram = "Xwayland";
maintainers = with maintainers; [ emantor ];
2014-11-20 06:37:19 +00:00
platforms = platforms.linux;
};
}