From 3b80e8755e42e7a562fbc57f9674f27299a15eb6 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Thu, 21 Aug 2025 19:40:24 +0800 Subject: [PATCH] rosenthal: Remove niri. [upstreamed] * modules/rosenthal/packages/wm.scm (niri): Delete variable. --- modules/rosenthal/packages/wm.scm | 76 ------------------------------- 1 file changed, 76 deletions(-) diff --git a/modules/rosenthal/packages/wm.scm b/modules/rosenthal/packages/wm.scm index c75fa1a..d371dcf 100644 --- a/modules/rosenthal/packages/wm.scm +++ b/modules/rosenthal/packages/wm.scm @@ -19,79 +19,3 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages wm) #:use-module (gnu packages xdisorg)) - -(define-public niri - (package - (name "niri") - (version "25.02") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/YaLTeR/niri") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0vzskaalcz6pcml687n54adjddzgf5r07gggc4fhfsa08h1wfd4r")))) - (build-system cargo-build-system) - (arguments - (list #:install-source? #f - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'use-guix-vendored-dependencies - (lambda _ - (substitute* "Cargo.toml" - (("# version =.*") - "version = \"*\"") - (("git.*optional") - "version = \"*\", optional") - (("^git = .*") - "")))) - (add-after 'unpack 'set-environment - (lambda _ - (setenv "RUSTFLAGS" - (string-join - '("-C" "link-arg=-lEGL" - "-C" "link-arg=-lwayland-client") - " ")) - (setenv "NIRI_BUILD_VERSION_STRING" - #$(package-version this-package)) - ;; For tests. - (setenv "XDG_RUNTIME_DIR" "/tmp"))) - (add-after 'install 'install-extras - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "resources/niri.desktop" - (("niri-session") - (format #f "~a --dbus-daemon=~a ~a/bin/niri --session" - (search-input-file inputs "bin/dbus-run-session") - (search-input-file inputs "bin/dbus-daemon") - #$output))) - (install-file - "resources/niri.desktop" - (in-vicinity #$output "share/wayland-sessions")) - (install-file - "resources/niri-portals.conf" - (in-vicinity #$output "share/xdg-desktop-portal"))))))) - (native-inputs - (list pkg-config)) - (inputs - (cons* clang - dbus - libdisplay-info - libinput-minimal - libseat - libxkbcommon - mesa - pango - pipewire - wayland - (rosenthal-cargo-inputs 'niri))) - (home-page "https://github.com/YaLTeR/niri") - (synopsis "Scrollable-tiling Wayland compositor") - (description - "Niri is a scrollable-tiling Wayland compositor which arranges windows in a -scrollable format. It is considered stable for daily use and performs most -functions expected of a Wayland compositor.") - (license license:gpl3) - (properties - '((disable-updater? . #t)))))