weston: 14.0.1 -> 15.0.0 (#492500)

This commit is contained in:
Alyssa Ross
2026-02-21 14:26:58 +00:00
committed by GitHub
2 changed files with 33 additions and 19 deletions
+31 -19
View File
@@ -1,10 +1,10 @@
{
lib,
stdenv,
fetchurl,
fetchpatch2,
fetchFromGitLab,
meson,
ninja,
nix-update-script,
pkg-config,
python3,
wayland-scanner,
@@ -20,12 +20,15 @@
wayland,
wayland-protocols,
libxcb-cursor,
glslang,
demoSupport ? true,
jpegSupport ? true,
libjpeg,
lcmsSupport ? true,
lcms2,
luaSupport ? true,
lua5_4_compat,
pangoSupport ? true,
pango,
pipewireSupport ? true,
@@ -34,12 +37,15 @@
freerdp,
remotingSupport ? true,
gst_all_1,
vaapiSupport ? true,
vaapiSupport ? false,
libva,
vncSupport ? true,
aml,
neatvnc,
pam,
vulkanSupport ? true,
vulkan-headers,
vulkan-loader,
webpSupport ? true,
libwebp,
xwaylandSupport ? true,
@@ -49,22 +55,16 @@
stdenv.mkDerivation (finalAttrs: {
pname = "weston";
version = "14.0.1";
version = "15.0.0";
src = fetchurl {
url = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${finalAttrs.version}/downloads/weston-${finalAttrs.version}.tar.xz";
hash = "sha256-qBUFBbEmpZ33gf6MMMjm+H2nAT4XkDnrhEpbu8x8ebM=";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "wayland";
repo = "weston";
rev = finalAttrs.version;
hash = "sha256-7FbQkXazsf6FkkNbE+Q6ilKACFa/CoOL2Q1oXHuaVX8=";
};
patches = [
(fetchpatch2 {
# vnc: Allow neatvnc in version 0.9.0
# https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1649
url = "https://gitlab.freedesktop.org/wayland/weston/-/commit/b4386289d614f26e89e1c6eb17e048826e925ed1.patch";
hash = "sha256-mkIOup44C9Kp42tFMXz8Sis4URmPi4t605MQG672nJU=";
})
];
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson
@@ -72,7 +72,9 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
python3
wayland-scanner
];
]
++ lib.optional vulkanSupport glslang;
buildInputs = [
cairo
libGL
@@ -88,6 +90,7 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optional jpegSupport libjpeg
++ lib.optional lcmsSupport lcms2
++ lib.optional luaSupport lua5_4_compat
++ lib.optional pangoSupport pango
++ lib.optional pipewireSupport pipewire
++ lib.optional rdpSupport freerdp
@@ -101,6 +104,10 @@ stdenv.mkDerivation (finalAttrs: {
neatvnc
pam
]
++ lib.optionals vulkanSupport [
vulkan-headers
vulkan-loader
]
++ lib.optional webpSupport libwebp
++ lib.optionals xwaylandSupport [
libxcursor
@@ -109,7 +116,7 @@ stdenv.mkDerivation (finalAttrs: {
];
mesonFlags = [
(lib.mesonBool "backend-drm-screencast-vaapi" vaapiSupport)
(lib.mesonBool "deprecated-backend-drm-screencast-vaapi" vaapiSupport)
(lib.mesonBool "backend-pipewire" pipewireSupport)
(lib.mesonBool "backend-rdp" rdpSupport)
(lib.mesonBool "backend-vnc" vncSupport)
@@ -119,7 +126,9 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonBool "image-webp" webpSupport)
(lib.mesonBool "pipewire" pipewireSupport)
(lib.mesonBool "remoting" remotingSupport)
(lib.mesonBool "renderer-vulkan" vulkanSupport)
(lib.mesonOption "simple-clients" "")
(lib.mesonBool "shell-lua" luaSupport)
(lib.mesonBool "test-junit-xml" false)
(lib.mesonBool "xwayland" xwaylandSupport)
]
@@ -127,7 +136,10 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonOption "xwayland-path" (lib.getExe xwayland))
];
passthru.providedSessions = [ "weston" ];
passthru = {
providedSessions = [ "weston" ];
updateScript = nix-update-script { };
};
meta = {
description = "Lightweight and functional Wayland compositor";
+2
View File
@@ -11216,12 +11216,14 @@ with pkgs;
demoSupport = false;
jpegSupport = false;
lcmsSupport = false;
luaSupport = false;
pangoSupport = false;
pipewireSupport = false;
rdpSupport = false;
remotingSupport = false;
vaapiSupport = false;
vncSupport = false;
vulkanSupport = false;
webpSupport = false;
xwaylandSupport = false;
};