diff mbox series

[bug#73884,v1,19/19] gnu: Add swayrbar

Message ID 20241020161556.25798-4-luca@lucamatei.com
State New
Headers show
Series None | expand

Commit Message

Luca Matei Pintilie Oct. 20, 2024, 4:15 p.m. UTC
Change-Id: I5b700cc0feeb8a5fcc86ac77188d27afc7a6da5d
---
 gnu/packages/rust-apps.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 12205ef1aa..5ff20b38e2 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -3105,6 +3105,42 @@  (define-public swayr
 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")
+       #:cargo-inputs (("rust-battery" ,rust-battery-0.7)
+                       ("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-directories" ,rust-directories-5)
+                       ("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-swaybar-types" ,rust-swaybar-types-3)
+                       ("rust-swayipc" ,rust-swayipc-3)
+                       ("rust-sysinfo" ,rust-sysinfo-0.31)
+                       ("rust-toml" ,rust-toml-0.8))))
+    (home-page "https://sr.ht/~tsdh/swayr/#swayrbar")
+    (synopsis "Swaybar-protocol implementation for sway/swaybar")
+    (description
+     "This package provides a swaybar-protocol implementation for sway/swaybar.")
+    (license license:gpl3+)))
+
 (define-public tealdeer
   (package
     (name "tealdeer")