;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2021 southerntofu <southerntofu@militant.es>
;;; Copyright © 2021 jgart <jgart@dismail.de>
;;; Copyright © 2022 (unmatched parenthesis <paren@disroot.org>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (guixrus packages aparte)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (gnu packages crates-io)
#:use-module (gnu packages crates-graphics)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages tls)
#:use-module (guixrus packages common rust)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix utils)
#:use-module (guix build-system cargo))
(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
"@code{aparte} is a simple XMPP terminal client written in Rust and inspired by @{profanity}.
Current features include:
@itemize
@item Channel
@item Roster
@item Auto completion
@item Bookmarks
@item Consistent color generation
@item MAM
@end itemize")
(license license:mpl2.0)))