From 010841e4c882f0be946c3502159c6ea8cbc90502 Mon Sep 17 00:00:00 2001 From: MementoMortes <6509254+MementoMortes@users.noreply.github.com> Date: Mon, 9 Mar 2026 16:02:03 +0100 Subject: [PATCH] weston: fix assertion error on weston 15.0 --- pkgs/by-name/we/weston/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/we/weston/package.nix b/pkgs/by-name/we/weston/package.nix index c6d103f0fbe1..0a552ce1b95c 100644 --- a/pkgs/by-name/we/weston/package.nix +++ b/pkgs/by-name/we/weston/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitLab, + fetchpatch, # Added for applying patch meson, ninja, nix-update-script, @@ -65,6 +66,15 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-7FbQkXazsf6FkkNbE+Q6ilKACFa/CoOL2Q1oXHuaVX8="; }; + # Backport for https://gitlab.freedesktop.org/wayland/weston/-/issues/1100 + patches = [ + (fetchpatch { + name = "weston-upstream-assertion-fix.patch"; + url = "https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1993.patch"; + hash = "sha256-705GIM7drTzv0N5Hk5dO18LWBnhhi1VoX8sfITHRYc4="; + }) + ]; + depsBuildBuild = [ pkg-config ]; nativeBuildInputs = [ meson