shezdy / hyprsplit

hyprland plugin for separate sets of workspaces on each monitor
BSD 3-Clause "New" or "Revised" License
74 stars 3 forks source link

Hyprsplit fails to build on newest version of Hyprland on NixOS #17

Closed nonetrix closed 1 month ago

nonetrix commented 1 month ago
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/lzfxcfdyc29c9qarjgm11g4wha9n9cw9-hyprsplit-0.1.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/j78rrwza9giz1wacz6km39clhyd4h40k-ai19qcqab6sxw6i6g4ddb0nb793zrs3b-source
source root is ai19qcqab6sxw6i6g4ddb0nb793zrs3b-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
mesonConfigurePhase flags: --prefix=/nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1 --libdir=/nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/lib --libexecdir=/nix/store/a9x4m54ahjb93b0j9a8b>
The Meson build system
Version: 1.4.0
Source dir: /build/ai19qcqab6sxw6i6g4ddb0nb793zrs3b-source
Build dir: /build/ai19qcqab6sxw6i6g4ddb0nb793zrs3b-source/build
Build type: native build
Project name: hyprsplit
Project version: 0.1
C++ compiler for the host machine: g++ (gcc 13.2.0 "g++ (GCC) 13.2.0")
C++ linker for the host machine: g++ ld.bfd 2.41
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/nix/store/vbk2n3094zyl9ywijks6a3d7s2i6wnfm-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Run-time dependency hyprland found: YES 0.40.0
Run-time dependency pixman-1 found: YES 0.43.4
Run-time dependency libdrm found: YES 2.4.120
Build targets in project: 1

hyprsplit 0.1

  User defined options
    auto_features: enabled
    bindir       : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/bin
    buildtype    : plain
    includedir   : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/include
    infodir      : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/share/info
    libdir       : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/lib
    libexecdir   : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/libexec
    localedir    : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/share/locale
    mandir       : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/share/man
    prefix       : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1
    sbindir      : /nix/store/a9x4m54ahjb93b0j9a8bydl883mgmn47-hyprsplit-0.1/sbin
    wrap_mode    : nodownload

Found ninja-1.11.1 at /nix/store/47qj6ra6ihb54ryfa8281y5rkb0cfzc0-ninja-1.11.1/bin/ninja
mesonConfigurePhase: enabled\ parallel\ building
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
build flags: -j16
[1/2] Compiling C++ object libhyprsplit.so.p/src_main.cpp.o
FAILED: libhyprsplit.so.p/src_main.cpp.o 
g++ -Ilibhyprsplit.so.p -I. -I.. -I/nix/store/lil96xp4g1qg5jc10dxjzwf8bmzh4b3f-hyprland-0.40.0+date=2024-05-09_b0861b6//nix/store/lhkn1hzwjd4vvvg53b6qy1a0fj42jdzd-hyprland-0.40.0+date=2024-05-09_b0861b6-dev/in>
In file included from /nix/store/lhkn1hzwjd4vvvg53b6qy1a0fj42jdzd-hyprland-0.40.0+date=2024-05-09_b0861b6-dev/include/hyprland/src/defines.hpp:1,
                 from /nix/store/lhkn1hzwjd4vvvg53b6qy1a0fj42jdzd-hyprland-0.40.0+date=2024-05-09_b0861b6-dev/include/hyprland/src/Compositor.hpp:7,
                 from ../src/main.cpp:1:
/nix/store/lhkn1hzwjd4vvvg53b6qy1a0fj42jdzd-hyprland-0.40.0+date=2024-05-09_b0861b6-dev/include/hyprland/src/includes.hpp:36:10: fatal error: wlr/backend.h: No such file or directory
   36 | #include <wlr/backend.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
shezdy commented 1 month ago

It works for me building with https://github.com/hyprwm/Hyprland/commit/1753059b07be52cf78fa2676c4c71d2edb560199. I think this is a nix specific issue?

shezdy commented 1 month ago

Looking at the official plugins it seems hyprland.url in inputs changed from github:hyprwm/Hyprland to git+https://github.com/hyprwm/Hyprland?submodules=1. It might work if you change hyprland.url in the hyprsplit flake to match that and then update the lock file? If that works feel free to open a pr.

https://github.com/hyprwm/hyprland-plugins/issues/164 this might also be relevant.

nonetrix commented 1 month ago

Already did that image

nonetrix commented 1 month ago

@stejcon maybe you would have a better idea of what's going on here? Sorry for pinging

nonetrix commented 1 month ago

This MIGHT fix it? https://github.com/hyprwm/Hyprland/pull/5952

nonetrix commented 1 month ago

Nope seems to still be failing to build

shezdy commented 1 month ago

the fix got moved to a new one https://github.com/hyprwm/Hyprland/pull/6002

nonetrix commented 1 month ago

Just tried that, fixes things for me I guess can be closed once that is merged