fix(waybar): Use unreleased patch

Waybar 0.10.0 introduces a regression regarding sway workspaces, a
merged patch fixes this, so we apply it instead of waiting for the next
release.

There are build issues due to a wireplumber update, but it should land
in nixos-unstable soon: https://nixpk.gs/pr-tracker.html?pr=297158
This commit is contained in:
Jalil David Salamé Messina 2024-03-20 08:38:41 +01:00
parent d67d20599b
commit 1a27b3384f
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 10 additions and 196 deletions

View file

@ -86,7 +86,16 @@
jpassmenu = jpassmenu.overlays.default;
audiomenu = audiomenu.overlays.default;
# Pin to v0.9 due to https://github.com/Alexays/Waybar/issues/3009
"waybar-0.9" = final: prev: { waybar = final.callPackage ./waybar.nix { }; };
"waybar-sway-patch" = final: prev: {
waybar = prev.waybar.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
(final.fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/Alexays/Waybar/pull/3037.patch";
hash = "sha256-u87t6zzslk1mzSfi4HQ6zDPFr7qMfsvymTy3HBxVTJQ=";
})
];
});
};
};
# Nix files formatter (run `nix fmt`)