1
0
forked from extern/nix-config
donovanglover-nix-config/overlays/waybar.nix

23 lines
713 B
Nix
Raw Normal View History

{
nixpkgs.overlays = [
(final: prev: {
waybar = prev.waybar.overrideAttrs (old: rec {
2023-06-29 06:34:45 +02:00
version = "635e06209dcf14612549864f461847f94b86406b";
src = final.fetchFromGitHub {
2023-06-29 06:34:45 +02:00
owner = "varbhat";
repo = "Waybar";
rev = version;
2023-06-29 06:34:45 +02:00
sha256 = "sha256-9D+OTPVvjnjCl3OW/YUoFmDi8IJLs/8QTi5JUorLmL8=";
};
postPatch = /* bash */ ''
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
'';
2023-06-16 13:31:34 +02:00
mesonFlags = old.mesonFlags ++ [ "-Dexperimental=true" ];
});
})
];
}