shezdy / hyprsplit

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

it brokeeeee no worky on nixos #22

Closed nonetrix closed 3 months ago

nonetrix commented 3 months ago
error: builder for '/nix/store/21v2grj6cam4bpvxbyv9y0k9py9d76fd-hyprsplit-0.1.drv' failed with exit code 1;
       last 10 log lines:
       > 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/3f5idjy4ax8s0mjaygryqxyv8ji5zizn-hyprland-0.41.0+date=2024-06-11_1c388e5-dev/include -I/nix/store/3f5idjy4ax8s0mjaygryqxyv8ji5zizn-hyprland-0.41.0+date=2024-06-11_1c388e5-dev/include/hyprland/protocols -I/nix/store/3f5idjy4ax8s0mjaygryqxyv8ji5zizn-hyprland-0.41.0+date=2024-06-11_1c388e5-dev/include/hyprland -I/nix/store/3f5idjy4ax8s0mjaygryqxyv8ji5zizn-hyprland-0.41.0+date=2024-06-11_1c388e5-dev/include/hyprland/wlr -I/nix/store/cy880gzg1h6awfrq7024543vicphg908-pixman-0.43.4/include/pixman-1 -I/nix/store/xjvnswjz32dw12ld8nb29lhwp92275aj-libdrm-2.4.120-dev/include -I/nix/store/xjvnswjz32dw12ld8nb29lhwp92275aj-libdrm-2.4.120-dev/include/libdrm -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++23 -DWLR_USE_UNSTABLE -fPIC -MD -MQ libhyprsplit.so.p/src_main.cpp.o -MF libhyprsplit.so.p/src_main.cpp.o.d -o libhyprsplit.so.p/src_main.cpp.o -c ../src/main.cpp
       > ../src/main.cpp: In function 'std::string getWorkspaceOnCurrentMonitor(const std::string&)':
       > ../src/main.cpp:27:16: error: 'isNumber' was not declared in this scope
       >    27 |     } else if (isNumber(workspace)) {
       >       |                ^~~~~~~~
       > ninja: build stopped: subcommand failed.
       For full logs, run 'nix log /nix/store/21v2grj6cam4bpvxbyv9y0k9py9d76fd-hyprsplit-0.1.drv'.
error: 1 dependencies of derivation '/nix/store/7rmrsi3fhj2ap0i6zcjkwlwfkqb1y34s-hm_hyprhyprland.conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s555q2a8yvrnk2jzh6jk7as5gk0b7xnl-activation-script.drv' failed to build
error: 1 dependencies of derivation '/nix/store/afwchjiv9xlj9svrmlv8mzmhbv63m9vb-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s4zkra9ak3q1pvn7njnhkv6qrl5nkkjk-unit-home-manager-noah.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wdbiiwy7rn95ah5r1jdk988ahl2id8by-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mlg75m1450iyaql3qwg31r7z0r3ab69d-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wclijdnkjd47c5h52llq9iqpmgczz4pv-nixos-system-nixos-24.11.20240609.c7b821b.drv' failed to build
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/21v2grj6cam4bpvxbyv9y0k9py9d76fd-hyprsplit-0.1.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/npbvlf6c8h4w1skzw41bkysbd5z71syx-6mbxmwv4m4zsvfykv2snbd1hg1snxa6x-source
source root is 6mbxmwv4m4zsvfykv2snbd1hg1snxa6x-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/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1 --libdir=/nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/lib --libexecdir=/nix/store/klai0b23mjh4d2zxz7dv>
The Meson build system
Version: 1.4.0
Source dir: /build/6mbxmwv4m4zsvfykv2snbd1hg1snxa6x-source
Build dir: /build/6mbxmwv4m4zsvfykv2snbd1hg1snxa6x-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/zdvrzlvzbn9ymb0z8na50w995j8np16z-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Run-time dependency hyprland found: YES 0.41.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/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/bin
    buildtype    : plain
    includedir   : /nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/include
    infodir      : /nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/share/info
    libdir       : /nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/lib
    libexecdir   : /nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/libexec
    localedir    : /nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/share/locale
    mandir       : /nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/share/man
    prefix       : /nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1
    sbindir      : /nix/store/klai0b23mjh4d2zxz7dvdvszd2pxgzbp-hyprsplit-0.1/sbin
    wrap_mode    : nodownload

Found ninja-1.11.1 at /nix/store/hlxymn46n1xv6d0lq2jmcbl9b6g2l8s9-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/3f5idjy4ax8s0mjaygryqxyv8ji5zizn-hyprland-0.41.0+date=2024-06-11_1c388e5-dev/include -I/nix/store/3f5idjy4ax8s0mjaygryqxyv8ji5zizn-hyprland-0.41.0+date=2024-06-11_>
../src/main.cpp: In function 'std::string getWorkspaceOnCurrentMonitor(const std::string&)':
../src/main.cpp:27:16: error: 'isNumber' was not declared in this scope
   27 |     } else if (isNumber(workspace)) {
      |                ^~~~~~~~
ninja: build stopped: subcommand failed.
nonetrix commented 3 months ago

I think https://github.com/hyprwm/Hyprland/commit/8c64a4bad710fb18e9b84812bd680a89d1e93661 is to blame judging by what it removes and adds

shezdy commented 3 months ago

some stuff got moved to hyprutils, should be fixed now ^_^