From 7933373dd9ff5f7fd4703ac405a176aa1b8701af Mon Sep 17 00:00:00 2001 From: Grimmauld Date: Thu, 23 Jan 2025 19:18:46 +0100 Subject: [PATCH] swayfx-unwrapped: backport fix to support updated libinput This fix was previously included in a PR to sway in https://github.com/swaywm/sway/pull/8470 to support newer libinput library versions. --- pkgs/by-name/sw/swayfx-unwrapped/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/sw/swayfx-unwrapped/package.nix b/pkgs/by-name/sw/swayfx-unwrapped/package.nix index f771a0101e24..9e621c41ccaf 100644 --- a/pkgs/by-name/sw/swayfx-unwrapped/package.nix +++ b/pkgs/by-name/sw/swayfx-unwrapped/package.nix @@ -33,6 +33,7 @@ enableXWayland ? true, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, trayEnabled ? systemdSupport, + fetchpatch2, }: stdenv.mkDerivation (finalAttrs: { @@ -57,6 +58,12 @@ stdenv.mkDerivation (finalAttrs: { [ ./load-configuration-from-etc.patch + (fetchpatch2 { + # fix missing switch statement for newer libinput + url = "https://github.com/swaywm/sway/pull/8470.patch?full_index=1"; + hash = "sha256-UTZ2DNEsGi5RYrgZThHkYz3AnnIl/KxieinA1WUZRq4="; + }) + (substituteAll { src = ./fix-paths.patch; inherit swaybg;