hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.47k stars 898 forks source link

Failing to build on Nix #5954

Closed szinn closed 6 months ago

szinn commented 6 months ago

Hyprland Version

System/Version info ```sh @nix { "action": "setPhase", "phase": "unpackPhase" } Running phase: unpackPhase unpacking source archive /nix/store/dpdlfy8v8y3pzc07k732i1nxmmsrpj32-source source root is 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/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9/share/doc/Hyprland -DCMAKE_INSTALL_INFODIR=/nix/store/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/p86jfpnn01hsn2angc2sgnw0zmq88g5q-hyprland-0.40.0+date=2024-05-08_6a988d9-man/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/0vfvv1vhib0rli2c9ijb3q4hszsi3nyi-hyprland-0.40.0+date=2024-05-08_6a988d9-dev/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/0vfvv1vhib0rli2c9ijb3q4hszsi3nyi-hyprland-0.40.0+date=2024-05-08_6a988d9-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/4i0gb09kcanl3gbmqmm82iivbcjh2lmw-gcc-wrapper-13.2.0/bin/strip -DCMAKE_RANLIB=/nix/store/4i0gb09kcanl3gbmqmm82iivbcjh2lmw-gcc-wrapper-13.2.0/bin/ranlib -DCMAKE_AR=/nix/store/4i0gb09kcanl3gbmqmm82iivbcjh2lmw-gcc-wrapper-13.2.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/64ij5wjzrd2lzz3z91az755zwl4rnw6z-hyprland-0.40.0+date=2024-05-08_6a988d9 -DNO_XWAYLAND:BOOL=FALSE -DLEGACY_RENDERER:BOOL=FALSE -DNO_SYSTEMD:BOOL=FALSE -- 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/4i0gb09kcanl3gbmqmm82iivbcjh2lmw-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/4i0gb09kcanl3gbmqmm82iivbcjh2lmw-gcc-wrapper-13.2.0/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Gathering git info fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git CMake Error at CMakeLists.txt:32 (add_subdirectory): The source directory /build/source/subprojects/udis86 does not contain a CMakeLists.txt file. -- Setting up wlroots -- Found PkgConfig: /nix/store/vbk2n3094zyl9ywijks6a3d7s2i6wnfm-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2") -- Found WaylandScanner at /nix/store/jsdqzw2g14h1wk6x93bl551drcd5i9ha-wayland-1.22.0-bin/bin/wayland-scanner -- Found wayland-protocols at //nix/store/6v7nvm2lm6sy4ws9x4ksgyfjxxnpad9d-wayland-protocols-1.35/share/wayland-protocols -- Configuring Hyprland in Release with CMake -- Checking deps... -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found OpenGL: /nix/store/n5plv6lv08bxshqq9ina34ckzklc7i81-libGL-1.7.0/lib/libOpenGL.so found components: GLES3 -- Checking for modules 'xkbcommon;uuid;wayland-server;wayland-client;wayland-cursor;wayland-protocols;cairo;pango;pangocairo;pixman-1;libdrm;libinput;hwdata;libseat;libdisplay-info;libliftoff;libudev;gbm;hyprwayland-scanner>=0.3.5;hyprlang>=0.3.2;hyprcursor>=0.1.7' -- Found xkbcommon, version 1.5.0 -- Found uuid, version 2.39.3 -- Found wayland-server, version 1.22.0 -- Found wayland-client, version 1.22.0 -- Found wayland-cursor, version 1.22.0 -- Found wayland-protocols, version 1.35 -- Found cairo, version 1.18.0 -- Found pango, version 1.52.2 -- Found pangocairo, version 1.52.2 -- Found pixman-1, version 0.43.4 -- Found libdrm, version 2.4.120 -- Found libinput, version 1.25.0 -- Found hwdata, version 0.381 -- Found libseat, version 0.8.0 -- Found libdisplay-info, version 0.1.1 -- Found libliftoff, version 0.4.1 -- Found libudev, version 255 -- Found gbm, version 24.0.5 -- Found hyprwayland-scanner, version 0.3.5 -- Found hyprlang, version 0.5.1 -- Found hyprcursor, version 0.1.7 -- Looking for execinfo.h -- Looking for execinfo.h - found -- Configuration supports execinfo -- Looking for backtrace in execinfo -- Looking for backtrace in execinfo - not found -- Looking for sys/timerfd.h -- Looking for sys/timerfd.h - found -- Checking for module 'epoll-shim' -- No package 'epoll-shim' found -- XWAYLAND Enabled (NO_XWAYLAND not defined) checking deps... -- Checking for modules 'xcb;xwayland;xcb-util;xcb-render;xcb-xfixes;xcb-icccm;xcb-composite;xcb-res;xcb-ewmh' -- Found xcb, version 1.17.0 -- Found xwayland, version 23.2.6 -- Found xcb-util, version 0.4.1 -- Found xcb-render, version 1.17.0 -- Found xcb-xfixes, version 1.17.0 -- Found xcb-icccm, version 0.4.2 -- Found xcb-composite, version 1.17.0 -- Found xcb-res, version 1.17.0 -- Found xcb-ewmh, version 0.4.2 -- Checking for module 'xcb-errors' -- Found xcb-errors, version 1.0.1 -- SYSTEMD support is requested (NO_SYSTEMD not defined)... -- Setting precompiled headers -- Setting link libraries Could not open input file: No such file or directory Could not open input file: No such file or directory Could not open input file: No such file or directory Could not open input file: No such file or directory Couldn't load proto -- Checking for module 'tomlplusplus' -- Found tomlplusplus, version 3.4.0 -- Configuring incomplete, errors occurred! ```

Bug or Regression?

Bug

Description

Hyprland is failing to build on nix-unstable (for about a week now)

• Updated input 'hyprland':
    'github:hyprwm/Hyprland/70b5e6df70a7eac180e2c8e9c2bce70ff43b45ad' (2024-05-08)
  → 'github:hyprwm/Hyprland/6a988d9276691957f1d9138f93c2209b580cad13' (2024-05-08)
• Updated input 'hyprland-plugins':
    'github:hyprwm/hyprland-plugins/d716d1221348b5bef9d13161876caa91a3e33705' (2024-05-05)
  → 'github:hyprwm/hyprland-plugins/dcbdc9a08d1df753d6799bab823486f1fff5b8e6' (2024-05-08)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/25865a40d14b3f9cf19f19b924e2ab4069b09588' (2024-05-05)
  → 'github:nixos/nixpkgs/b211b392b8486ee79df6cdfb1157ad2133427a29' (2024-05-07)

How to reproduce

Build with above hash

Crash reports, logs, images, videos

No response

tharrmeehan commented 6 months ago

Maybe #5891?

szinn commented 6 months ago

Ah, changed the inputs as that issue mentioned and it builds. I thought there was a commit submitted that resolved it without needing to change the inputs.