outfoxxed/hy3

Missing hyprland header files on NixOS (hyprland/src/desktop/Window.hpp not found)

Closed this issue · 4 comments

Hello.
This is most likely a me issue, but I can't access the header files, so the build fails.
I am on NixOS.
To fix this Issue I already tried to add hyprland to the pkgs additionally to programs.hyprland.enable.
I somehow need to install the hyperland header files, but I don't know how.

My config:

in home-manager file

  wayland.windowManager.hyprland = {
    # Whether to enable Hyprland wayland compositor
    enable = true;
    # The hyprland package to use
    package = inputs.hyprland.packages.${pkgs.system}.hyprland;
    # Whether to enable XWayland
    xwayland.enable = true;

    # Optional
    # Whether to enable hyprland-session.target on hyprland startup
    systemd.enable = true;

    plugins = [
      inputs.hy3.packages.x86_64-linux.hy3
    ];

    extraConfig = builtins.readFile ./../../hypr/hyprland.conf;
  };

In flake.nix

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    hyprland.url = "github:hyprwm/Hyprland";

    hy3 = {
      url = "github:outfoxxed/hy3"; 
      inputs.hyprland.follows = "hyprland";
    };
  };

Short Log (last 10 lines):

error: builder for '/nix/store/6jiz2c5iam7z1j9qjna98bf917r1g7mz-hy3-hl0.36.0.drv' failed with exit code 1;
       last 10 log lines:
       > FAILED: CMakeFiles/hy3.dir/src/main.cpp.o
       > /nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/g++ -DWLR_USE_UNSTABLE -Dhy3_EXPORTS -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/protocols -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/wlroots -I/nix/store/03rhvhl5a3g9vry2njzmva7h27vimvcx-pango-1.51.0-dev/include/pango-1.0 -I/nix/store/p78m3rmr5g1xqyizlsbg39cgbvjbjz74-cairo-1.18.0-dev/include/cairo -I/nix/store/lz55qmq1sdayqvs96lzds4zim6g2m6kz-glib-2.78.4-dev/include/glib-2.0 -I/nix/store/g0gc1ls4p1rwcx7k5qr153rs71ir8ixn-glib-2.78.4/lib/glib-2.0/include -I/nix/store/wbnc9vygplxrysw19r0hw9i0d6g7ryac-harfbuzz-8.3.0-dev/include/harfbuzz -I/nix/store/sg7sijswn5a2mb9ycjbir22mrbgib70n-libdrm-2.4.120-dev/include/libdrm -O2 -g -DNDEBUG -std=gnu++23 -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -MD -MT CMakeFiles/hy3.dir/src/main.cpp.o -MF CMakeFiles/hy3.dir/src/main.cpp.o.d -o CMakeFiles/hy3.dir/src/main.cpp.o -c /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/main.cpp
       > In file included from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Layout.hpp:25,
       >                  from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/globals.hpp:8,
       >                  from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/main.cpp:7:
       > /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.hpp:9:10: fatal error: hyprland/src/desktop/Window.hpp: No such file or directory
       >     9 | #include <hyprland/src/desktop/Window.hpp>
       >       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       > compilation terminated.
       > ninja: build stopped: subcommand failed.
       For full logs, run 'nix log /nix/store/6jiz2c5iam7z1j9qjna98bf917r1g7mz-hy3-hl0.36.0.drv'.

Full Log:

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/xz47d8vxyv3x803825n4a3wq55r4c3hn-vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source
source root is vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
fixing cmake files...
cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/share/doc/Hy3 -DCMAKE_INSTALL_INFODIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/strip -DCMAKE_RANLIB=/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/ranlib -DCMAKE_AR=/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/5dkvrivl3jxg244zzcqzxdd4x5zg4v40-hy3-hl0.36.0  
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /nix/store/492n7ylp2f9zn0k3vghv1snypgkzznc5-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2") 
-- Checking for modules 'hyprland;pixman-1;libdrm;pango;pangocairo'
--   Found hyprland, version 0.36.0
--   Found pixman-1, version 0.43.2
--   Found libdrm, version 2.4.120
--   Found pango, version 1.51.0
--   Found pangocairo, version 1.51.0
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
Package libpcre2-8 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcre2-8.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcre2-8', required by 'glib-2.0', not found
-- Configuring done (2.0s)
-- Generating done (0.0s)
�[33mCMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR
    CMAKE_POLICY_DEFAULT_CMP0025

�[0m
-- Build files have been written to: /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/build
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
build flags: -j16
[1/7] Building CXX object CMakeFiles/hy3.dir/src/TabGroup.cpp.o
FAILED: CMakeFiles/hy3.dir/src/TabGroup.cpp.o 
/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/g++ -DWLR_USE_UNSTABLE -Dhy3_EXPORTS -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/protocols -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/wlroots -I/nix/store/03rhvhl5a3g9vry2njzmva7h27vimvcx-pango-1.51.0-dev/include/pango-1.0 -I/nix/store/p78m3rmr5g1xqyizlsbg39cgbvjbjz74-cairo-1.18.0-dev/include/cairo -I/nix/store/lz55qmq1sdayqvs96lzds4zim6g2m6kz-glib-2.78.4-dev/include/glib-2.0 -I/nix/store/g0gc1ls4p1rwcx7k5qr153rs71ir8ixn-glib-2.78.4/lib/glib-2.0/include -I/nix/store/wbnc9vygplxrysw19r0hw9i0d6g7ryac-harfbuzz-8.3.0-dev/include/harfbuzz -I/nix/store/sg7sijswn5a2mb9ycjbir22mrbgib70n-libdrm-2.4.120-dev/include/libdrm -O2 -g -DNDEBUG -std=gnu++23 -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -MD -MT CMakeFiles/hy3.dir/src/TabGroup.cpp.o -MF CMakeFiles/hy3.dir/src/TabGroup.cpp.o.d -o CMakeFiles/hy3.dir/src/TabGroup.cpp.o -c /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/TabGroup.cpp
In file included from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/TabGroup.hpp:13,
                 from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/TabGroup.cpp:1:
/build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.hpp:9:10: fatal error: hyprland/src/desktop/Window.hpp: No such file or directory
    9 | #include <hyprland/src/desktop/Window.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[2/7] Building CXX object CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o
FAILED: CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o 
/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/g++ -DWLR_USE_UNSTABLE -Dhy3_EXPORTS -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/protocols -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/wlroots -I/nix/store/03rhvhl5a3g9vry2njzmva7h27vimvcx-pango-1.51.0-dev/include/pango-1.0 -I/nix/store/p78m3rmr5g1xqyizlsbg39cgbvjbjz74-cairo-1.18.0-dev/include/cairo -I/nix/store/lz55qmq1sdayqvs96lzds4zim6g2m6kz-glib-2.78.4-dev/include/glib-2.0 -I/nix/store/g0gc1ls4p1rwcx7k5qr153rs71ir8ixn-glib-2.78.4/lib/glib-2.0/include -I/nix/store/wbnc9vygplxrysw19r0hw9i0d6g7ryac-harfbuzz-8.3.0-dev/include/harfbuzz -I/nix/store/sg7sijswn5a2mb9ycjbir22mrbgib70n-libdrm-2.4.120-dev/include/libdrm -O2 -g -DNDEBUG -std=gnu++23 -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -MD -MT CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o -MF CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o.d -o CMakeFiles/hy3.dir/src/Hy3Layout.cpp.o -c /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Layout.cpp
In file included from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Layout.hpp:25,
                 from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Layout.cpp:8:
/build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.hpp:9:10: fatal error: hyprland/src/desktop/Window.hpp: No such file or directory
    9 | #include <hyprland/src/desktop/Window.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[3/7] Building CXX object CMakeFiles/hy3.dir/src/Hy3Node.cpp.o
FAILED: CMakeFiles/hy3.dir/src/Hy3Node.cpp.o 
/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/g++ -DWLR_USE_UNSTABLE -Dhy3_EXPORTS -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/protocols -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/wlroots -I/nix/store/03rhvhl5a3g9vry2njzmva7h27vimvcx-pango-1.51.0-dev/include/pango-1.0 -I/nix/store/p78m3rmr5g1xqyizlsbg39cgbvjbjz74-cairo-1.18.0-dev/include/cairo -I/nix/store/lz55qmq1sdayqvs96lzds4zim6g2m6kz-glib-2.78.4-dev/include/glib-2.0 -I/nix/store/g0gc1ls4p1rwcx7k5qr153rs71ir8ixn-glib-2.78.4/lib/glib-2.0/include -I/nix/store/wbnc9vygplxrysw19r0hw9i0d6g7ryac-harfbuzz-8.3.0-dev/include/harfbuzz -I/nix/store/sg7sijswn5a2mb9ycjbir22mrbgib70n-libdrm-2.4.120-dev/include/libdrm -O2 -g -DNDEBUG -std=gnu++23 -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -MD -MT CMakeFiles/hy3.dir/src/Hy3Node.cpp.o -MF CMakeFiles/hy3.dir/src/Hy3Node.cpp.o.d -o CMakeFiles/hy3.dir/src/Hy3Node.cpp.o -c /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.cpp
In file included from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.cpp:7:
/build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.hpp:9:10: fatal error: hyprland/src/desktop/Window.hpp: No such file or directory
    9 | #include <hyprland/src/desktop/Window.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[4/7] Building CXX object CMakeFiles/hy3.dir/src/SelectionHook.cpp.o
FAILED: CMakeFiles/hy3.dir/src/SelectionHook.cpp.o 
/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/g++ -DWLR_USE_UNSTABLE -Dhy3_EXPORTS -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/protocols -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/wlroots -I/nix/store/03rhvhl5a3g9vry2njzmva7h27vimvcx-pango-1.51.0-dev/include/pango-1.0 -I/nix/store/p78m3rmr5g1xqyizlsbg39cgbvjbjz74-cairo-1.18.0-dev/include/cairo -I/nix/store/lz55qmq1sdayqvs96lzds4zim6g2m6kz-glib-2.78.4-dev/include/glib-2.0 -I/nix/store/g0gc1ls4p1rwcx7k5qr153rs71ir8ixn-glib-2.78.4/lib/glib-2.0/include -I/nix/store/wbnc9vygplxrysw19r0hw9i0d6g7ryac-harfbuzz-8.3.0-dev/include/harfbuzz -I/nix/store/sg7sijswn5a2mb9ycjbir22mrbgib70n-libdrm-2.4.120-dev/include/libdrm -O2 -g -DNDEBUG -std=gnu++23 -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -MD -MT CMakeFiles/hy3.dir/src/SelectionHook.cpp.o -MF CMakeFiles/hy3.dir/src/SelectionHook.cpp.o.d -o CMakeFiles/hy3.dir/src/SelectionHook.cpp.o -c /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/SelectionHook.cpp
In file included from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Layout.hpp:25,
                 from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/globals.hpp:8,
                 from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/SelectionHook.cpp:4:
/build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.hpp:9:10: fatal error: hyprland/src/desktop/Window.hpp: No such file or directory
    9 | #include <hyprland/src/desktop/Window.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[5/7] Building CXX object CMakeFiles/hy3.dir/src/dispatchers.cpp.o
FAILED: CMakeFiles/hy3.dir/src/dispatchers.cpp.o 
/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/g++ -DWLR_USE_UNSTABLE -Dhy3_EXPORTS -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/protocols -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/wlroots -I/nix/store/03rhvhl5a3g9vry2njzmva7h27vimvcx-pango-1.51.0-dev/include/pango-1.0 -I/nix/store/p78m3rmr5g1xqyizlsbg39cgbvjbjz74-cairo-1.18.0-dev/include/cairo -I/nix/store/lz55qmq1sdayqvs96lzds4zim6g2m6kz-glib-2.78.4-dev/include/glib-2.0 -I/nix/store/g0gc1ls4p1rwcx7k5qr153rs71ir8ixn-glib-2.78.4/lib/glib-2.0/include -I/nix/store/wbnc9vygplxrysw19r0hw9i0d6g7ryac-harfbuzz-8.3.0-dev/include/harfbuzz -I/nix/store/sg7sijswn5a2mb9ycjbir22mrbgib70n-libdrm-2.4.120-dev/include/libdrm -O2 -g -DNDEBUG -std=gnu++23 -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -MD -MT CMakeFiles/hy3.dir/src/dispatchers.cpp.o -MF CMakeFiles/hy3.dir/src/dispatchers.cpp.o.d -o CMakeFiles/hy3.dir/src/dispatchers.cpp.o -c /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/dispatchers.cpp
In file included from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Layout.hpp:25,
                 from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/globals.hpp:8,
                 from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/dispatchers.cpp:7:
/build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.hpp:9:10: fatal error: hyprland/src/desktop/Window.hpp: No such file or directory
    9 | #include <hyprland/src/desktop/Window.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[6/7] Building CXX object CMakeFiles/hy3.dir/src/main.cpp.o
FAILED: CMakeFiles/hy3.dir/src/main.cpp.o 
/nix/store/ln6zld1ia7rxddmxgbpfhrmb42rbxdw8-gcc-wrapper-13.2.0/bin/g++ -DWLR_USE_UNSTABLE -Dhy3_EXPORTS -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/protocols -I/nix/store/wych3vibdam6nwrch2gpq7iza16k2s4p-hyprland-0.36.0+date=2024-03-04_12da0fc-dev/include/hyprland/wlroots -I/nix/store/03rhvhl5a3g9vry2njzmva7h27vimvcx-pango-1.51.0-dev/include/pango-1.0 -I/nix/store/p78m3rmr5g1xqyizlsbg39cgbvjbjz74-cairo-1.18.0-dev/include/cairo -I/nix/store/lz55qmq1sdayqvs96lzds4zim6g2m6kz-glib-2.78.4-dev/include/glib-2.0 -I/nix/store/g0gc1ls4p1rwcx7k5qr153rs71ir8ixn-glib-2.78.4/lib/glib-2.0/include -I/nix/store/wbnc9vygplxrysw19r0hw9i0d6g7ryac-harfbuzz-8.3.0-dev/include/harfbuzz -I/nix/store/sg7sijswn5a2mb9ycjbir22mrbgib70n-libdrm-2.4.120-dev/include/libdrm -O2 -g -DNDEBUG -std=gnu++23 -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -MD -MT CMakeFiles/hy3.dir/src/main.cpp.o -MF CMakeFiles/hy3.dir/src/main.cpp.o.d -o CMakeFiles/hy3.dir/src/main.cpp.o -c /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/main.cpp
In file included from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Layout.hpp:25,
                 from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/globals.hpp:8,
                 from /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/main.cpp:7:
/build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.hpp:9:10: fatal error: hyprland/src/desktop/Window.hpp: No such file or directory
    9 | #include <hyprland/src/desktop/Window.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

I had the same issue under Debian unstable, it was caused by an too old version of hyprland being installed
See also #89 which describes the files moving

A git pull and build of the latest Hyperland did however cause another issue due to and change in API in Hyprland
See: #94

If I understood correctly,


hyprland.url = "github:hyprwm/Hyprland";

should set the hyprland source to the github version, what shoud be up to date.
Also is the Package in Home-Magager set to inputs.hyprland, what should be the above declared version.

I unfortunately have no experience with building Nix packages.

I just build hy3 using my old hyprland install and had the same issue as you, and pull'ing my hyprland build, rebuilding and installing it fixed it, as it made the hy3 code align with the hyprland code.

Anyway I'm 99% sure you current build issue is caused by it being build against/using an too old version of hyprland

Ok, I had some fundermental issues understanding the way to upgrade nixos.

The flake.lock preserves the versions for consistency and adding the --upgrade flag on nixos-rebuild doesnt change the flack.lock. So I had to run nix flake update to update my system.

Anyway you were right and thanks for beeing that persistent. I wouldn't have recognized my mistake otherwise.

Should I open a new Issue regarding the new error I get now?

       > [6/7] Building CXX object CMakeFiles/hy3.dir/src/Hy3Node.cpp.o
       > /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.cpp: In member function 'void Hy3Node::recalcSizePosRecursive(bool)':
       > /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.cpp:352:72: warning: 'constraint' may be used uninitialized [-Wmaybe-uninitialized]
       >   352 |             group->layout != Hy3GroupLayout::Tabbed ? child_count <= 0 ? 0 : constraint / child_count : 0;
       >       |                                                       ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       > /build/vij9pxlfscvr8ydkkfb59kmd6w1a1xrm-source/src/Hy3Node.cpp:333:16: note: 'constraint' was declared here
       >   333 |         double constraint;
       >       |                ^~~~~~~~~~

I am gonna close this Issue now because the initial problem is fixed.