From cfbb812e67f3d5df4a4c11ecb29200a4494c81ab Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Tue, 19 Mar 2024 22:37:33 +0100 Subject: [PATCH] patches: Add waybar build fix patch --- patches/297158.patch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 patches/297158.patch diff --git a/patches/297158.patch b/patches/297158.patch new file mode 100644 index 00000000..b2baa719 --- /dev/null +++ b/patches/297158.patch @@ -0,0 +1,39 @@ +diff --git a/pkgs/applications/misc/waybar/default.nix b/pkgs/applications/misc/waybar/default.nix +index 47071c60f29424..fd24f6605e4e08 100644 +--- a/pkgs/applications/misc/waybar/default.nix ++++ b/pkgs/applications/misc/waybar/default.nix +@@ -2,6 +2,7 @@ + , stdenv + , bash + , fetchFromGitHub ++, fetchFromGitLab + , SDL2 + , alsa-lib + , catch2_3 +@@ -72,6 +73,17 @@ let + rev = "0.10.1"; + hash = "sha256-iIYKvpOWafPJB5XhDOSIW9Mb4I3A4pcgIIPQdQYEqUw="; + }; ++ ++ wireplumber_0_4 = wireplumber.overrideAttrs (attrs: rec { ++ version = "0.4.17"; ++ src = fetchFromGitLab { ++ domain = "gitlab.freedesktop.org"; ++ owner = "pipewire"; ++ repo = "wireplumber"; ++ rev = version; ++ hash = "sha256-vhpQT67+849WV1SFthQdUeFnYe/okudTQJoL3y+wXwI="; ++ }; ++ }); + in + stdenv.mkDerivation (finalAttrs: { + pname = "waybar"; +@@ -138,7 +150,7 @@ stdenv.mkDerivation (finalAttrs: { + ++ lib.optional traySupport libdbusmenu-gtk3 + ++ lib.optional udevSupport udev + ++ lib.optional upowerSupport upower +- ++ lib.optional wireplumberSupport wireplumber ++ ++ lib.optional wireplumberSupport wireplumber_0_4 + ++ lib.optional (cavaSupport || pipewireSupport) pipewire + ++ lib.optional (!stdenv.isLinux) libinotify-kqueue; +