From 3235f23b8c83c2f16540d5153c7dacce2a7abd5c Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Tue, 8 Oct 2024 21:25:51 +0200 Subject: gnu: add swayrbar Change-Id: Ia23e9e9a50c57bc411545eb7c658d1c020d260f2 --- gnu/packages/rust-apps.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 12205ef1aa..818ceff26d 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -3105,6 +3105,47 @@ JSON IPC interface. The swayr client offers subcommands, and sends them to the daemon which executes them.") (license license:gpl3+))) +(define-public swayrbar + (package + (name "swayrbar") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "swayrbar" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "05jpa87i6q1cpikyqqliy3q2ksslj79kgin8jq9ls6073yk5q6z7")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags '("--release" "--" + "--skip=config::test_load_swayrbar_config") + #:install-source? #f + #:cargo-inputs (("rust-clap" ,rust-clap-4) + ("rust-directories" ,rust-directories-5) + ("rust-battery" ,rust-battery-0.7) + ("rust-env-logger" ,rust-env-logger-0.11) + ("rust-log" ,rust-log-0.4) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-regex" ,rust-regex-1) + ("rust-rt-format" ,rust-rt-format-0.3) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-swayipc" ,rust-swayipc-3) + ("rust-swaybar-types" ,rust-swaybar-types-3) + ("rust-sysinfo" ,rust-sysinfo-0.31) + ("rust-toml" ,rust-toml-0.8) + ("rust-chrono" ,rust-chrono-0.4)))) + (home-page "https://sr.ht/~tsdh/swayr/") + (synopsis "Window-switcher for the sway window manager") + (description + "This package provides a last-recently-used window-switcher for the sway +window manager. Swayr consists of a daemon, and a client. The swayrd daemon +records window/workspace creations, deletions, and focus changes using sway's +JSON IPC interface. The swayr client offers subcommands, and sends them to the +daemon which executes them.") + (license license:gpl3+))) + (define-public tealdeer (package (name "tealdeer") -- cgit v1.2.3