Package Details: niri-git 0.1.4.r0.7ff2de1-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/YaLTeR/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: cosmo
Votes: 5
Popularity: 0.92
First Submitted: 2023-09-26 09:12 (UTC)
Last Updated: 2024-03-30 20:55 (UTC)

Dependencies (23)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

supreme commented on 2024-04-11 01:45 (UTC)

Ok, managed to get it building again with this patch:

diff --git a/PKGBUILD b/PKGBUILD
index ab19b38..d41c7c7 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 libinput libpipewire libxkbcommon mesa pango pixman seatd)
-makedepends=(clang rust git git-lfs)
+makedepends=(clang rust git makepkg-git-lfs-proto)
 url="https://github.com/YaLTeR/${pkgname%-git}"
 license=(GPL-3.0-or-later)
 depends=(cairo glib2 libinput libpipewire libxkbcommon mesa pango pixman seatd)
-makedepends=(clang rust git git-lfs)
+makedepends=(clang rust git makepkg-git-lfs-proto)
 [[ -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)
-source=(${pkgname%-git}::git+$url.git)
+source=(${pkgname%-git}::git-lfs+$url.git)
 b2sums=('SKIP')

 pkgver() {

supreme commented on 2024-04-11 00:06 (UTC)

Strangely enough, the git-lfs errors have come back. Not sure how to fix them this time.

cosmo commented on 2024-03-30 20:56 (UTC)

@Nebulosa I made a copy & paste error with the packageversion, it should be fixed now.

Nebulosa commented on 2024-03-30 20:50 (UTC)

Something wrong with pkgver..

After building the package it switch to ==> Updated version: niri-git 0.1.4.r0.g7ff2de1-1 and after checking updates it shows that it has update again...

cosmo commented on 2024-03-29 17:19 (UTC)

thanks @supreme, I updated the PKGBUILD

supreme commented on 2024-03-28 02:49 (UTC) (edited on 2024-03-28 02:54 (UTC) by supreme)

Looks like this is failing to build:

Cloning into 'niri'...
done.
Downloading wiki/img/block-out-from-screencast.png (669 KB)
Error downloading object: wiki/img/block-out-from-screencast.png (c1e4e68): Smudge error: Error downloading wiki/img/block-out-from-screencast.png (c1e4e6809fff666c324a6e19bc888fe8cbafb5d159cea36703e7020510c53a52): error transferring "c1e4e6809fff666c324a6e19bc888fe8cbafb5d159cea36703e7020510c53a52": [0] remote missing object c1e4e6809fff666c324a6e19bc888fe8cbafb5d159cea36703e7020510c53a52

Errors logged to '/home/supreme/.cache/paru/clone/niri-git/src/niri/.git/lfs/logs/20240327T224858.735524647.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: wiki/img/block-out-from-screencast.png: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

==> ERROR: Failure while creating working copy of niri git repo
    Aborting...
error: failed to build 'niri-git-0.1.2.r23.gd1fe693-1': 
error: packages failed to build: niri-git-0.1.2.r23.gd1fe693-1

Managed to fix by adding git-lfs to makedepends

FreeFull commented on 2024-02-21 19:18 (UTC) (edited on 2024-02-21 19:19 (UTC) by FreeFull)

I've moved default-config.kdl over to /usr/share/doc/niri.

I haven't included the script, I didn't feel sure that it would fit in with the rest of the package, especially since it's not part of the niri repo itself.

Nebulosa commented on 2024-02-21 14:02 (UTC) (edited on 2024-02-21 14:03 (UTC) by Nebulosa)

Yes, /usr/share/doc/niri would be better in that case.

Maybe make a message that you should check latest version of config here: https://raw.githubusercontent.com/YaLTeR/niri/main/resources/default-config.kdl

OR:

Add /usr/bin/niri-config-updatescript: https://github.com/YaLTeR/niri/discussions/152#discussioncomment-8450133 with meld optional dependency. Not hotkey, just script.

FreeFull commented on 2024-02-21 12:47 (UTC) (edited on 2024-02-21 12:48 (UTC) by FreeFull)

@Nebulosa The default-config.kdl is useful in the case where you already have a ~/.config/niri/config.kdl, and you want to compare your config against the default. I do think it might be good to move it out of /etc though, would it be better to have it in /usr/share/doc/niri?

Nebulosa commented on 2024-02-21 09:40 (UTC)

Adding default-config.kdl in package is useless. This file need only for building process but after Niri don't use this file at all. At first launch Niri create ~/.config/niri/config.kdl even this file is exist in xdg folder.

See: https://github.com/YaLTeR/niri/commit/51243a0a505a533057e7326fbbae882420f0d363 and https://github.com/YaLTeR/niri/discussions/152

So it is better to delete this file so as not to mislead anyone.