From fcb969e1196bd0f225f75fe52218edaea0621ade Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 2 Mar 2021 17:07:39 -0800 Subject: [PATCH] waybar: fix compatibility with kernels >=5.11 --- pkgs/applications/misc/waybar/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/applications/misc/waybar/default.nix b/pkgs/applications/misc/waybar/default.nix index aa10a98c039f..d730f966347c 100644 --- a/pkgs/applications/misc/waybar/default.nix +++ b/pkgs/applications/misc/waybar/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , meson , pkg-config , ninja @@ -36,6 +37,17 @@ stdenv.mkDerivation rec { sha256 = "1kzrgqaclfk6gcwhknxn28xl74gm5swipgn8kk8avacb4nsw1l9q"; }; + patches = [ + # XXX: REMOVE ON NEXT VERSION BUMP + # Fixes compatibility of the bluetooth and network modules with linux kernel + # >=5.11 + # c.f. https://github.com/Alexays/Waybar/issues/994 + (fetchpatch { + url = "https://patch-diff.githubusercontent.com/raw/Alexays/Waybar/pull/1015.patch"; + sha256 = "sha256-jQZEM3Yru2yxcXAzapU47DoAv4ZoabrV80dH42I2OFk="; + }) + ]; + nativeBuildInputs = [ meson ninja pkg-config scdoc wrapGAppsHook cmake ] ++ lib.optional withMediaPlayer gobject-introspection;