From ecf4afbdaa2b9fc5d06863dc95491148c76775f7 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 2 Mar 2021 17:04:55 -0800 Subject: [PATCH 1/2] waybar: add lovesegfault as maintainer --- pkgs/applications/misc/waybar/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/waybar/default.nix b/pkgs/applications/misc/waybar/default.nix index 0cbe325f62af..aa10a98c039f 100644 --- a/pkgs/applications/misc/waybar/default.nix +++ b/pkgs/applications/misc/waybar/default.nix @@ -82,7 +82,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Highly customizable Wayland bar for Sway and Wlroots based compositors"; license = licenses.mit; - maintainers = with maintainers; [ FlorianFranzen minijackson synthetica ]; + maintainers = with maintainers; [ FlorianFranzen minijackson synthetica lovesegfault ]; platforms = platforms.unix; homepage = "https://github.com/alexays/waybar"; }; From fcb969e1196bd0f225f75fe52218edaea0621ade Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 2 Mar 2021 17:07:39 -0800 Subject: [PATCH 2/2] 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;