alexhulbert / SeaGlass

My dotfiles: theme websites with Pywal, run KDE widgets on Hyprland, achieve background-only transparency on all applications
69 stars 0 forks source link

Hyprchroma support for Hyprland 0.40.0? #3

Closed cenunix closed 4 months ago

cenunix commented 4 months ago

As the title suggests, im getting this build error when trying to add hyprchroma on NixOS, pinned to the hyprland 0.40.0 release in my flake:

hyprland.url = "github:hyprwm/hyprland?ref=v0.40.0&submodules=1";

Hyprland workspace overview plugin

hyprland-hyprspace = {
  url = "github:KZDKM/Hyprspace";
  inputs.hyprland.follows = "hyprland";
};
# Hyprland transparency magic
hyprland-hyprchroma = {
  url = "github:alexhulbert/HyprChroma";
  inputs.hyprland.follows = "hyprland";
};

error: builder for '/nix/store/y1n3iq5nnmmvk86xz71zhppvqvajac62-Hypr-DarkWindow-0.1.drv' failed with exit code… ┃ last 10 log lines: ┃ > src/main.cpp: In lambda function: ┃ > src/main.cpp:123:54: error: cannot convert 'PHLWINDOWREF' {aka 'std::weak_ptr'} to 'CWindow' ┃ > 123 | g_WindowInverter.ToggleInvert(g_pCompositor->m_pLastWindow); ┃ > | ~~~^~~~~ ┃ > | | ┃ > | PHLWINDOWREF {aka std::weak_ptr} ┃ > src/WindowInverter.h:18:32: note: initializing argument 1 of 'void WindowInverter::ToggleInvert(CWindow)' ┃ > 18 | void ToggleInvert(CWindow* window); ┃ > | ~~~^~~~ ┃ > make: *** [Makefile:7: all] Error 1

alexhulbert commented 4 months ago

Updated the HyprChroma repo, try now. Works for me on the latest version of hyprland :+1: