Home-manager: unable to build waybar

Hi, I’m new to Nix and am using a standalone home-manager installation on Arch Linux with flakes. After updating my flake.lock with nix flake update and rebuilding it with home-manager build following error is produced:

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/wp5d5205rv1kdz2rrz4jgknqjy6y2pm5-waybar-0.10.0.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/5q3fdaixac9hv71rva2xal78l195lv4n-source
source root is source
/build/source /build
patching script interpreter paths in .
/build
@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/77n7cw79znnsrdg5qxa3jv03m7h8pwrl-waybar-0.10.0 --libdir=/nix/store/77n7cw79znnsrdg5qxa3jv03m7h8pwrl-waybar-0.10.0/lib --libexecdir=/nix/store/77n7cw79znnsrdg5qxa3jv03m7h8pwrl-waybar-0.10.0/libexec --bindir=/nix/store/77n7cw79znnsrdg5qxa3jv03m7h8pwrl-waybar-0.10.0/bin --s>
The Meson build system
Version: 1.3.2
Source dir: /build/source
Build dir: /build/source/build
Build type: native build
Project name: waybar
Project version: 0.10.0
C compiler for the host machine: gcc (gcc 13.2.0 "gcc (GCC) 13.2.0")
C linker for the host machine: gcc ld.bfd 2.41
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
Compiler for C++ supports link arguments -lc++fs: NO 
Compiler for C++ supports link arguments -lstdc++fs: YES 
Program git found: NO
Checking if "nl_langinfo with _NL_TIME_WEEK_1STDAY, _NL_TIME_FIRST_WEEKDAY" : links: YES 
Run-time dependency threads found: YES
Found pkg-config: YES (/nix/store/a3752l19hc76dmzh1wgrxbsxh6lfx67z-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Run-time dependency fmt found: YES 10.2.1
Run-time dependency spdlog found: YES 1.13.0
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency wayland-cursor found: YES 1.22.0
Run-time dependency wayland-protocols found: YES 1.33
Run-time dependency gtkmm-3.0 found: YES 3.24.8
Run-time dependency dbusmenu-gtk3-0.4 found: YES 16.04.0
Run-time dependency gio-unix-2.0 found: YES 2.78.4
Run-time dependency jsoncpp found: YES 1.9.5
Run-time dependency sigc++-2.0 found: YES 2.12.1
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency libinotify found: NO (tried pkgconfig and cmake)
Run-time dependency epoll-shim found: NO (tried pkgconfig and cmake)
Run-time dependency libinput found: YES 1.25.0
Run-time dependency libnl-3.0 found: YES 3.8.0
Run-time dependency libnl-genl-3.0 found: YES 3.8.0
Run-time dependency upower-glib found: YES 1.90.2
Run-time dependency libpipewire-0.3 found: YES 1.0.3
Run-time dependency playerctl found: YES 2.4.1
Run-time dependency libpulse found: YES 17.0
Run-time dependency libudev found: YES 255
Run-time dependency libevdev found: YES 1.13.1
Run-time dependency libmpdclient found: YES 2.22
Run-time dependency xkbregistry found: YES 1.5.0
Run-time dependency jack found: YES 1.9.22
Run-time dependency wireplumber-0.4 found: NO (tried pkgconfig)

meson.build:95:17: ERROR: Dependency "wireplumber-0.4" not found, tried pkgconfig

A full log can be found at /build/source/build/meson-logs/meson-log.txt

It seems like it is trying to build waybar from source and failing. I’m not to sure why it tries to build from source in the first place, my understanding is that this package should be available in cache.nixos.org. Relevant flake.nix and waybar.nix files are:

As I’m new to the Nix build system I’m a bit lost on how to figure out why it tries to build it, perhaps someone can point me in the right direction?

Waybar as of 2024-03-20T21:00:00Z does not build successfully on the unstable branch.

Check out

You can try moving to a stable channel in your flake.nix such as 23.11 which you seem to have commented out.

Ouch, using unstable already bit me. Seems like a fix will be merged soon on unstable, in the mean time I just used the 23.11 package for waybar. Thank you very much!