Package Details: waybar-niri-taskbar 0.4.0+niri.25.11-1

Git Clone URL: https://aur.archlinux.org/waybar-niri-taskbar.git (read-only, click to copy)
Package Base: waybar-niri-taskbar
Description: A simple taskbar for Niri, written in Rust: release version
Upstream URL: https://github.com/lawngnome/niri-taskbar
Licenses: MIT
Conflicts: waybar-niri-taskbar-git
Submitter: epicurious
Maintainer: epicurious
Last Packager: epicurious
Votes: 1
Popularity: 0.133069
First Submitted: 2025-09-19 11:16 (UTC)
Last Updated: 2025-12-04 14:31 (UTC)

Latest Comments

marcin commented on 2025-12-05 09:19 (UTC)

Works as expected. The taskbar is installed under /usr/lib/waybar/libniri_taskbar.so.

Decator_TheONLY commented on 2025-11-11 08:33 (UTC)

install: cannot stat '/home/aidan/.cache/yay/waybar-niri-taskbar/src/niri-taskbar-0.3.0-niri.25.08/target/release/libniri_taskbar.so': No such file or directory

This package assumes the location of the target directory, but Cargo allows the user to configure the target directory to be anywhere. I have a global target directory set. There are two ways to solve this.

I have a fish function that tries to determine the target directory (I don't know bash), and this worked to get things building:

  TARGET_DIR="$(fish -c 'get-cargo-target-dir')"
  install -Dm755 "${TARGET_DIR}/release/libniri_taskbar.so" "$pkgdir/usr/lib/waybar/libniri_taskbar.so"

However, the simpler solution is just to set the target-dir in build():

build() {
  cd "$_pkgname"
  cargo build --release --locked --target-dir=target
}

Any time you access files from the target directory in a script, you'll need to take this into account.