From 47f1a758a1b3d347fdc31d1aad6785b3ad0df9e9 Mon Sep 17 00:00:00 2001 From: Nivayu Date: Fri, 20 Feb 2026 16:29:44 +0100 Subject: [PATCH] weston: 14.0.1 -> 15.0.0 --- pkgs/by-name/we/weston/package.nix | 50 ++++++++++++++++++------------ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/pkgs/by-name/we/weston/package.nix b/pkgs/by-name/we/weston/package.nix index 5e5af35f1809..c6d103f0fbe1 100644 --- a/pkgs/by-name/we/weston/package.nix +++ b/pkgs/by-name/we/weston/package.nix @@ -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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ed292aa4350a..8e6717a71c67 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11242,12 +11242,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; };