Subject: [bug#49451] [PATCH 19/20] gnu: Add aparte

From: southerntofu <[email-masked]>
Date: Sun, 11 Jul 2021 17:31:50 -0400

---
 gnu/packages/messaging.scm | 59 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 22e1c370aa..6bfee2e15e 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -60,6 +60,7 @@
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cpp)
+  #:use-module (gnu packages crates-io)
   #:use-module (gnu packages crypto)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages cyrus-sasl)
@@ -123,6 +124,7 @@
   #:use-module (gnu packages xiph)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
+  #:use-module (guix build-system cargo)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system go)
   #:use-module (guix build-system glib-or-gtk)
@@ -3016,4 +3018,61 @@ API.  Mattermost is not required.")
     (home-page "https://github.com/42wim/matterbridge")
     (license license:asl2.0)))
 
+(define-public aparte
+  (package
+    (name "aparte")
+    (version "0.2.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "aparte" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0qzg1052whjhcsz8n3s77kb4zvp7k0na3hikzkf5qa3z4g0hyvrp"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-backtrace" ,rust-backtrace-0.3)
+         ("rust-bytes" ,rust-bytes-0.5)
+         ("rust-chrono" ,rust-chrono-0.4)
+         ("rust-derive-error" ,rust-derive-error-0.0.4)
+         ("rust-dirs" ,rust-dirs-2)
+         ("rust-flexi-logger" ,rust-flexi-logger-0.15)
+         ("rust-futures" ,rust-futures-0.3)
+         ("rust-fuzzy-matcher" ,rust-fuzzy-matcher-0.3)
+         ("rust-hsluv" ,rust-hsluv-0.1)
+         ("rust-linked-hash-map"
+          ,rust-linked-hash-map-0.5)
+         ("rust-linked-hash-set"
+          ,rust-linked-hash-set-0.1)
+         ("rust-log" ,rust-log-0.4)
+         ("rust-rand" ,rust-rand-0.8)
+         ("rust-rpassword" ,rust-rpassword-3)
+         ("rust-rust-crypto" ,rust-rust-crypto-0.2)
+         ("rust-serde" ,rust-serde-1)
+         ("rust-termion" ,rust-termion-1)
+         ("rust-textwrap" ,rust-textwrap-0.12)
+         ("rust-tokio" ,rust-tokio-1)
+         ("rust-tokio-xmpp" ,rust-tokio-xmpp-3)
+         ("rust-toml" ,rust-toml-0.5)
+         ("rust-unicode-segmentation"
+          ,rust-unicode-segmentation-1)
+         ("rust-uuid" ,rust-uuid-0.7)
+         ("rust-xmpp-parsers" ,rust-xmpp-parsers-0.18))
+        #:cargo-development-inputs
+        (("rust-mockall" ,rust-mockall-0.9))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("openssl" ,openssl)))
+    (home-page
+      "https://github.com/paulfariello/aparte")
+    (synopsis
+      "Simple XMPP console client written in Rust and inspired by Profanity")
+    (description
+      "Simple XMPP console client written in Rust and inspired by Profanity")
+    (license license:mpl2.0)))
+
 ;;; messaging.scm ends here
-- 
2.30.2