hyprland-plugins icon indicating copy to clipboard operation
hyprland-plugins copied to clipboard

Hyprbars not building on NixOS

Open typedrat opened this issue 9 months ago • 3 comments

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/svfzai85kz0cngdwnmvddv8ylczja49d-hyprbars
source root is hyprbars
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
mesonConfigurePhase flags: --prefix=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1 --libdir=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/lib --libexecdir=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/libexec --bindir=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/bin --sbindir=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/sbin --includedir=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/include --mandir=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/share/man --infodir=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/share/info --localedir=/nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain
[1mThe Meson build system[0m
Version: 1.7.0
Source dir: [1m/build/hyprbars[0m
Build dir: [1m/build/hyprbars/build[0m
Build type: [1mnative build[0m
Project name: [1mhyprbars[0m
Project version: [1m0.1[0m
C++ compiler for the host machine: [1mg++[0m (gcc 14.2.1 "g++ (GCC) 14.2.1 20241116")
C++ linker for the host machine: [1mg++[0m ld.mold 2.37.1
Host machine cpu family: [1mx86_64[0m
Host machine cpu: [1mx86_64[0m
Compiler for C++ supports arguments -std=c++23: [1;32mYES[0m 
meson.build:8: [1;33mWARNING:[0m Consider using the built-in option for language standard version instead of using "-std=c++23".
Found pkg-config: [1;32mYES[0m [1m(/nix/store/8cczxvv6hpngc9mxal0wx0lzny4vjp4n-pkg-config-wrapper-0.29.2/bin/pkg-config)[0m [1;34m0.29.2[0m
Run-time dependency [1mhyprland[0m found: [1;32mYES[0m [36m0.47.0[0m
Dependency [1mhyprland[0m found: [1;32mYES[0m [36m0.47.0[0m [1;34m(cached)[0m
Run-time dependency [1mpixman-1[0m found: [1;32mYES[0m [36m0.44.2[0m
Run-time dependency [1mlibdrm[0m found: [1;32mYES[0m [36m2.4.124[0m
Run-time dependency [1mpangocairo[0m found: [1;32mYES[0m [36m1.56.1[0m
Run-time dependency [1mlibinput[0m found: [1;32mYES[0m [36m1.27.1[0m
Run-time dependency [1mlibudev[0m found: [1;32mYES[0m [36m257[0m
Run-time dependency [1mwayland-server[0m found: [1;32mYES[0m [36m1.23.1[0m
Run-time dependency [1mxkbcommon[0m found: [1;32mYES[0m [36m1.7.0[0m
Build targets in project: [1m1[0m

hyprbars [36m0.1[0m

  [1mUser defined options[0m
    auto_features: enabled
    bindir       : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/bin
    buildtype    : plain
    includedir   : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/include
    infodir      : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/share/info
    libdir       : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/lib
    libexecdir   : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/libexec
    localedir    : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/share/locale
    mandir       : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/share/man
    prefix       : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1
    sbindir      : /nix/store/xwp269c834i44127yapbmgbig01v18w1-hyprbars-0.1/sbin
    wrap_mode    : nodownload

Found ninja-1.12.1 at /nix/store/b8hida4z1qy9aw1fy3vdr251rzf125i0-ninja-1.12.1/bin/ninja
mesonConfigurePhase: enabled\ parallel\ building
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j16
[1/4] Compiling C++ object libhyprbars.so.p/BarPassElement.cpp.o
FAILED: libhyprbars.so.p/BarPassElement.cpp.o 
g++ -Ilibhyprbars.so.p -I. -I.. -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/protocols -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland -I/nix/store/8k6yc12fjsabc9a8msc7hwv6rxzm0fi0-pixman-0.44.2/include/pixman-1 -I/nix/store/9pxabmi7kfnkk7m6b6b13wryyd5lzb16-libdrm-2.4.124-dev/include -I/nix/store/9pxabmi7kfnkk7m6b6b13wryyd5lzb16-libdrm-2.4.124-dev/include/libdrm -I/nix/store/hnqd8hy29lms41fy7r8ccyhq0xahlfgf-cairo-1.18.2-dev/include/cairo -I/nix/store/90g3mg3c7w9hs78n9c29bbbz80cpcvq2-freetype-2.13.3-dev/include/freetype2 -I/nix/store/90g3mg3c7w9hs78n9c29bbbz80cpcvq2-freetype-2.13.3-dev/include -I/nix/store/bry9cijf53mjxhfcwv77ps5y2f9zak8k-glib-2.82.4-dev/include -I/nix/store/bry9cijf53mjxhfcwv77ps5y2f9zak8k-glib-2.82.4-dev/include/glib-2.0 -I/nix/store/7ly9p55j21sr0rl93lb6vpi1k1sbb3x3-glib-2.82.4/lib/glib-2.0/include -I/nix/store/g93ivkzmhggli8rwhwqbqbf8kgy9h7hr-pango-1.56.1-dev/include/pango-1.0 -I/nix/store/gr2rixxmaplly7cgc78bmscdyxvalmgc-harfbuzz-10.2.0-dev/include/harfbuzz -I/nix/store/xy0f7l9jhy0grsc17b6rlmssvzm6cqs8-libinput-1.27.1-dev/include -I/nix/store/9frccpzw96ri6y67bix1yr9pxbh8iq75-systemd-minimal-libs-257.3-dev/include -I/nix/store/kdvf8bl620s9mf1izprm596jmi489srx-wayland-1.23.1-dev/include -I/nix/store/bms469l1c5d31iq8df2gafbb9fjxmxdx-libxkbcommon-1.7.0-dev/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wno-narrowing -std=c++23 -fPIC -MD -MQ libhyprbars.so.p/BarPassElement.cpp.o -MF libhyprbars.so.p/BarPassElement.cpp.o.d -o libhyprbars.so.p/BarPassElement.cpp.o -c ../BarPassElement.cpp
In file included from /nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/src/render/OpenGL.hpp:30,
                 from ../BarPassElement.cpp:2:
/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/src/protocols/core/Compositor.hpp:14:10: fatal error: render/Texture.hpp: No such file or directory
   14 | #include "render/Texture.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[2/4] Compiling C++ object libhyprbars.so.p/barDeco.cpp.o
FAILED: libhyprbars.so.p/barDeco.cpp.o 
g++ -Ilibhyprbars.so.p -I. -I.. -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/protocols -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland -I/nix/store/8k6yc12fjsabc9a8msc7hwv6rxzm0fi0-pixman-0.44.2/include/pixman-1 -I/nix/store/9pxabmi7kfnkk7m6b6b13wryyd5lzb16-libdrm-2.4.124-dev/include -I/nix/store/9pxabmi7kfnkk7m6b6b13wryyd5lzb16-libdrm-2.4.124-dev/include/libdrm -I/nix/store/hnqd8hy29lms41fy7r8ccyhq0xahlfgf-cairo-1.18.2-dev/include/cairo -I/nix/store/90g3mg3c7w9hs78n9c29bbbz80cpcvq2-freetype-2.13.3-dev/include/freetype2 -I/nix/store/90g3mg3c7w9hs78n9c29bbbz80cpcvq2-freetype-2.13.3-dev/include -I/nix/store/bry9cijf53mjxhfcwv77ps5y2f9zak8k-glib-2.82.4-dev/include -I/nix/store/bry9cijf53mjxhfcwv77ps5y2f9zak8k-glib-2.82.4-dev/include/glib-2.0 -I/nix/store/7ly9p55j21sr0rl93lb6vpi1k1sbb3x3-glib-2.82.4/lib/glib-2.0/include -I/nix/store/g93ivkzmhggli8rwhwqbqbf8kgy9h7hr-pango-1.56.1-dev/include/pango-1.0 -I/nix/store/gr2rixxmaplly7cgc78bmscdyxvalmgc-harfbuzz-10.2.0-dev/include/harfbuzz -I/nix/store/xy0f7l9jhy0grsc17b6rlmssvzm6cqs8-libinput-1.27.1-dev/include -I/nix/store/9frccpzw96ri6y67bix1yr9pxbh8iq75-systemd-minimal-libs-257.3-dev/include -I/nix/store/kdvf8bl620s9mf1izprm596jmi489srx-wayland-1.23.1-dev/include -I/nix/store/bms469l1c5d31iq8df2gafbb9fjxmxdx-libxkbcommon-1.7.0-dev/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wno-narrowing -std=c++23 -fPIC -MD -MQ libhyprbars.so.p/barDeco.cpp.o -MF libhyprbars.so.p/barDeco.cpp.o.d -o libhyprbars.so.p/barDeco.cpp.o -c ../barDeco.cpp
In file included from /nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/src/render/OpenGL.hpp:30,
                 from ../barDeco.hpp:6,
                 from ../barDeco.cpp:1:
/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/src/protocols/core/Compositor.hpp:14:10: fatal error: render/Texture.hpp: No such file or directory
   14 | #include "render/Texture.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[3/4] Compiling C++ object libhyprbars.so.p/main.cpp.o
FAILED: libhyprbars.so.p/main.cpp.o 
g++ -Ilibhyprbars.so.p -I. -I.. -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/protocols -I/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland -I/nix/store/8k6yc12fjsabc9a8msc7hwv6rxzm0fi0-pixman-0.44.2/include/pixman-1 -I/nix/store/9pxabmi7kfnkk7m6b6b13wryyd5lzb16-libdrm-2.4.124-dev/include -I/nix/store/9pxabmi7kfnkk7m6b6b13wryyd5lzb16-libdrm-2.4.124-dev/include/libdrm -I/nix/store/hnqd8hy29lms41fy7r8ccyhq0xahlfgf-cairo-1.18.2-dev/include/cairo -I/nix/store/90g3mg3c7w9hs78n9c29bbbz80cpcvq2-freetype-2.13.3-dev/include/freetype2 -I/nix/store/90g3mg3c7w9hs78n9c29bbbz80cpcvq2-freetype-2.13.3-dev/include -I/nix/store/bry9cijf53mjxhfcwv77ps5y2f9zak8k-glib-2.82.4-dev/include -I/nix/store/bry9cijf53mjxhfcwv77ps5y2f9zak8k-glib-2.82.4-dev/include/glib-2.0 -I/nix/store/7ly9p55j21sr0rl93lb6vpi1k1sbb3x3-glib-2.82.4/lib/glib-2.0/include -I/nix/store/g93ivkzmhggli8rwhwqbqbf8kgy9h7hr-pango-1.56.1-dev/include/pango-1.0 -I/nix/store/gr2rixxmaplly7cgc78bmscdyxvalmgc-harfbuzz-10.2.0-dev/include/harfbuzz -I/nix/store/xy0f7l9jhy0grsc17b6rlmssvzm6cqs8-libinput-1.27.1-dev/include -I/nix/store/9frccpzw96ri6y67bix1yr9pxbh8iq75-systemd-minimal-libs-257.3-dev/include -I/nix/store/kdvf8bl620s9mf1izprm596jmi489srx-wayland-1.23.1-dev/include -I/nix/store/bms469l1c5d31iq8df2gafbb9fjxmxdx-libxkbcommon-1.7.0-dev/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wno-narrowing -std=c++23 -fPIC -MD -MQ libhyprbars.so.p/main.cpp.o -MF libhyprbars.so.p/main.cpp.o.d -o libhyprbars.so.p/main.cpp.o -c ../main.cpp
In file included from /nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/src/render/OpenGL.hpp:30,
                 from /nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/src/render/Renderer.hpp:7,
                 from ../main.cpp:9:
/nix/store/jmy4va3rmwv1x542w1gmc6mx4mgf5125-hyprland-0.47.0+date=2025-03-22_6ab5a0b-dev/include/hyprland/src/protocols/core/Compositor.hpp:14:10: fatal error: render/Texture.hpp: No such file or directory
   14 | #include "render/Texture.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

It was working fine until I updated my flake today. Relevant portions of my config:

In flake.nix:

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

    hyprlock.url = "github:hyprwm/hyprlock/v0.7.0";

    hyprland-plugins = {
      url = "github:hyprwm/hyprland-plugins";
      inputs.hyprland.follows = "hyprland";
    };
};

In nixos/hyprland.nix:

  programs.hyprland = {
    enable = true;
    withUWSM = true;

    package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
    portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
  };

In home-manager/hyprland/hyprbars.nix:

  wayland.windowManager.hyprland = {
    plugins = [
      inputs.hyprland-plugins.packages.${pkgs.stdenv.system}.hyprbars
    ];
  };

typedrat avatar Mar 22 '25 21:03 typedrat

It works with inputs.hyprland pointing to github:hyprwm/Hyprland/ccbdba7ee2ccb835306de89a6023134fa6b8006f but not with it pointing to github:hyprwm/Hyprland/6ab5a0befb45e90eb45b8d6582e68d13147297dc.

typedrat avatar Mar 22 '25 21:03 typedrat

After the latest git update, all plugins are not capable to be built or updated. Exact same issue for me aswell.

IckyVickyUwU avatar Mar 23 '25 02:03 IckyVickyUwU

Should be fixed with https://github.com/hyprwm/Hyprland/commit/aa1bd647b10a35c3fddc7650ec21df4a2ee18487.

fufexan avatar Mar 23 '25 12:03 fufexan