mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
143 lines
2.5 KiB
Nix
143 lines
2.5 KiB
Nix
{
|
|
egl-wayland,
|
|
bash,
|
|
libepoxy,
|
|
fetchurl,
|
|
fontutil,
|
|
lib,
|
|
libdecor,
|
|
libei,
|
|
libGL,
|
|
libGLU,
|
|
libX11,
|
|
libXau,
|
|
libXaw,
|
|
libXdmcp,
|
|
libXext,
|
|
libXfixes,
|
|
libXfont2,
|
|
libXmu,
|
|
libXpm,
|
|
libXrender,
|
|
libXres,
|
|
libXt,
|
|
libdrm,
|
|
libtirpc,
|
|
withLibunwind ? true,
|
|
libunwind,
|
|
libxcb,
|
|
libxkbfile,
|
|
libxshmfence,
|
|
libxcvt,
|
|
mesa,
|
|
meson,
|
|
ninja,
|
|
openssl,
|
|
pkg-config,
|
|
pixman,
|
|
stdenv,
|
|
systemd,
|
|
wayland,
|
|
wayland-protocols,
|
|
wayland-scanner,
|
|
xkbcomp,
|
|
xkeyboard_config,
|
|
xorgproto,
|
|
xtrans,
|
|
zlib,
|
|
defaultFontPath ? "",
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xwayland";
|
|
version = "24.1.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://xorg/individual/xserver/${pname}-${version}.tar.xz";
|
|
hash = "sha256-2Wp426uBn1V1AXNERESZW1Ax69zBW3ev672NvAKvNPQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace os/utils.c \
|
|
--replace-fail '/bin/sh' '${lib.getExe' bash "sh"}'
|
|
'';
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
ninja
|
|
wayland-scanner
|
|
];
|
|
buildInputs =
|
|
[
|
|
egl-wayland
|
|
libdecor
|
|
libepoxy
|
|
libei
|
|
fontutil
|
|
libGL
|
|
libGLU
|
|
libX11
|
|
libXau
|
|
libXaw
|
|
libXdmcp
|
|
libXext
|
|
libXfixes
|
|
libXfont2
|
|
libXmu
|
|
libXpm
|
|
libXrender
|
|
libXres
|
|
libXt
|
|
libdrm
|
|
libtirpc
|
|
libxcb
|
|
libxkbfile
|
|
libxshmfence
|
|
libxcvt
|
|
mesa
|
|
openssl
|
|
pixman
|
|
systemd
|
|
wayland
|
|
wayland-protocols
|
|
xkbcomp
|
|
xorgproto
|
|
xtrans
|
|
zlib
|
|
]
|
|
++ lib.optionals withLibunwind [
|
|
libunwind
|
|
];
|
|
mesonFlags = [
|
|
(lib.mesonBool "xcsecurity" true)
|
|
(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)
|
|
];
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
# No nicer place to find latest release.
|
|
url = "https://gitlab.freedesktop.org/xorg/xserver.git";
|
|
rev-prefix = "xwayland-";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "X server for interfacing X11 apps with the Wayland protocol";
|
|
homepage = "https://wayland.freedesktop.org/xserver.html";
|
|
license = licenses.mit;
|
|
mainProgram = "Xwayland";
|
|
maintainers = with maintainers; [
|
|
emantor
|
|
k900
|
|
];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|