Nix: deprecate waybar-hyprland

Now merged in Nixpkgs, no reason to keep it here.
This commit is contained in:
Mihai Fufezan 2023-08-16 15:00:18 +03:00 committed by Mihai Fufezan
parent 78fa8adadc
commit 19f3e927d9
2 changed files with 2 additions and 14 deletions

View file

@ -69,12 +69,12 @@
# hyprland-extras # hyprland-extras
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
hyprland-share-picker hyprland-share-picker
waybar-hyprland
# dependencies # dependencies
hyprland-protocols hyprland-protocols
wlroots-hyprland wlroots-hyprland
udis86 udis86
; ;
waybar-hyprland = lib.warn "The `waybar-hyprland` package is now in Nixpkgs" pkgsFor.${system}.waybar-hyprland;
}); });
devShells = eachSystem (system: { devShells = eachSystem (system: {

View file

@ -55,19 +55,7 @@ in {
self.overlays.waybar-hyprland self.overlays.waybar-hyprland
]; ];
waybar-hyprland = final: prev: { waybar-hyprland = lib.warn "The `waybar-hyprland` package is now in Nixpkgs" (final: prev: {inherit (prev) waybar-hyprland;});
waybar-hyprland = prev.waybar.overrideAttrs (old: {
postPatch = ''
# use hyprctl to switch workspaces
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
'';
postFixup = ''
wrapProgram $out/bin/waybar \
--suffix PATH : ${lib.makeBinPath [final.hyprland]}
'';
mesonFlags = old.mesonFlags ++ ["-Dexperimental=true"];
});
};
udis86 = final: prev: { udis86 = final: prev: {
udis86 = final.callPackage ./udis86.nix {}; udis86 = final.callPackage ./udis86.nix {};