Package Details: niri-git 26.04.r43.g7f26c3e-2

Git Clone URL: https://aur.archlinux.org/niri-git.git (read-only, click to copy)
Package Base: niri-git
Description: Scrollable-tiling Wayland compositor
Upstream URL: https://github.com/niri-wm/niri
Keywords: rust smithay tiling-window-manager wayland wayland-compositor
Licenses: GPL-3.0-or-later
Conflicts: niri, niri-bin
Provides: niri
Submitter: jcaesar
Maintainer: cosmo (FreeFull)
Last Packager: FreeFull
Votes: 16
Popularity: 1.15
First Submitted: 2023-09-26 09:12 (UTC)
Last Updated: 2026-07-23 14:27 (UTC)

Dependencies (24)

Required by (101)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

FreeFull commented on 2026-07-23 14:29 (UTC)

@gimgiwer After some deliberation on IRC, I've ended up just completely removing the CARGO_ENCODED_RUSTFLAGS from the PKGBUILD. Your RUSTFLAGS should be now taking effect.

gimgiwer commented on 2026-07-23 12:58 (UTC) (edited on 2026-07-23 12:59 (UTC) by gimgiwer)

Yeah, spaces in $srcdir break RUSTFLAGS every time. Easiest fix is to build CARGO_ENCODED_RUSTFLAGS (which uses \x1f as a separator instead of spaces) by merging the user's flags and the path remap:

  local f enc=${CARGO_ENCODED_RUSTFLAGS-}
  read -ra f <<< "${RUSTFLAGS-}"
  f+=("--remap-path-prefix=${srcdir}=/")
  local IFS=$'\x1f'
  export CARGO_ENCODED_RUSTFLAGS="${enc:+$enc$IFS}${f[*]}"
  unset RUSTFLAGS

FreeFull commented on 2026-07-23 10:27 (UTC)

@gimgiwer

CARGO_ENCODED_RUSTFLAGS is used because regular RUSTFLAGS breaks if ${srcdir} contains a space character. I'm not sure what the proper solution to this would be, I do agree that overriding the user's own RUSTFLAGS is non-ideal.

gimgiwer commented on 2026-07-22 19:18 (UTC)

Setting CARGO_ENCODED_RUSTFLAGS clobbers the user's RUSTFLAGS from makepkg.conf (e.g. -C target-cpu=native), since Cargo gives it higher precedence. Appending instead keeps the remap while respecting user flags:

export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix=${srcdir}=/"

Could you swap the CARGO_ENCODED_RUSTFLAGS export in build() for this?

FreeFull commented on 2026-02-08 13:51 (UTC)

While the old upstream URL still worked due to a redirect, I have now changed it to point at the new URL.

Note: If you get an error about your existing git checkout not pointing at the proper URL, the easiest way to fix it is to do a completely clean build.

Alternatively, you can try using git to change the "origin" remote of the niri git repo to point at the new URL, which avoids doing an extra git clone.

diegonicacio commented on 2026-02-08 10:33 (UTC)

niri has moved its upstream from https://github.com/YaLTeR/niri to https://github.com/niri-wm/niri

Just announced by the core maintainer on X: https://x.com/YaLTeRz/status/2020403372629610724

FreeFull commented on 2026-01-23 23:00 (UTC) (edited on 2026-01-24 00:36 (UTC) by FreeFull)

The PKGBUILD used to not have the LFS stuff, but it was causing an error when checking out the git repo, for people that did have git lfs installed and set up on their system for other reasons. You can see the error here: https://aur.archlinux.org/packages/niri-git?O=20#comment-964154

However, I've just done some quick testing, and it does seem like that error doesn't happen any more. I'll be removing the LFS stuff from the PKGBUILD soon.

Edit: I have now removed the dependency on LFS, please comment if you run into any issues

ninchan commented on 2026-01-10 02:06 (UTC)

I also couldn't build niri-git due to LFS, but using the patch from @dougEfresh solves this problem. Why do we need LFS to build niri?

dougEfresh commented on 2026-01-09 10:37 (UTC)

I agree with @Gumminess7654 No reason to have LFS as requirement. Here is a patch

diff --git a/PKGBUILD b/PKGBUILD
index d8c7cec..ef7c7a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,7 +21,7 @@ arch=(x86_64 aarch64)
 url="https://github.com/YaLTeR/${pkgname%-git}"
 license=(GPL-3.0-or-later)
 depends=(cairo glib2 libdisplay-info libinput libpipewire libxkbcommon mesa pango pixman seatd)
-makedepends=(clang rust git makepkg-git-lfs-proto)
+makedepends=(clang rust git )
 [[ -n "${_sccache}" ]] && makedepends+=(sccache)
 optdepends=('fuzzel: application launcher similar to rofi drun mode'
             'waybar: highly customizable Wayland bar'
@@ -36,7 +36,7 @@ optdepends=('fuzzel: application launcher similar to rofi drun mode'
 provides=("${pkgname%-git}=${pkgver}")
 conflicts=("${pkgname%-git}-bin" "${pkgname%-git}")
 options=(!debug !lto !strip)
-source=("${pkgname%-git}::git-lfs+$url.git")
+source=("${pkgname%-git}::git+$url.git")
 b2sums=('SKIP')

 pkgver() {

Gumminess7654 commented on 2026-01-01 01:18 (UTC)

Why is Git LFS a dependency for this package? LFS is only used for images in the documentation and is not required for building niri. LFS blobs are also not part of the release tar balls.