Subject: [bug#70147] [PATCH 42/42] gnu: Add rage.

From: Wilko Meyer <[email-masked]>
Date: Tue, 2 Apr 2024 18:22:59 +0200

* gnu/packages/rust-apps.scm (rage): New variable.

Change-Id: I40a728dc250410e05bacaa331824d29959220733
---
 gnu/packages/rust-apps.scm | 49 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index b1b2ed49d8..32dc590c7f 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -3167,6 +3167,55 @@ (define-public git-delta
 @command{grep} and a stylized box presentation.")
     (license license:expat)))
 
+(define-public rage
+  (package
+    (name "rage")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rage" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "14z70dgwkzjx1nq6xjf7pn0g461il8pmimn0lv79jz6z9k2rwhbi"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 (substitute* "Cargo.toml"
+                   (("version = \">=0.3.7, <0.3.24\"") "version = \"^0.3.7\""))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-age" ,rust-age-0.10)
+                       ("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-clap-complete" ,rust-clap-complete-4)
+                       ("rust-clap-mangen" ,rust-clap-mangen-0.2)
+                       ("rust-console" ,rust-console-0.15)
+                       ("rust-ctrlc" ,rust-ctrlc-3)
+                       ("rust-env-logger" ,rust-env-logger-0.10)
+                       ("rust-flate2" ,rust-flate2-1)
+                       ("rust-fuse-mt" ,rust-fuse-mt-0.6)
+                       ("rust-fuser" ,rust-fuser-0.13)
+                       ("rust-i18n-embed" ,rust-i18n-embed-0.14)
+                       ("rust-i18n-embed" ,rust-i18n-embed-0.14)
+                       ("rust-i18n-embed-fl" ,rust-i18n-embed-fl-0.7)
+                       ("rust-i18n-embed-fl" ,rust-i18n-embed-fl-0.7)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-pinentry" ,rust-pinentry-0.5)
+                       ("rust-rust-embed" ,rust-rust-embed-8)
+                       ("rust-rust-embed" ,rust-rust-embed-8)
+                       ("rust-tar" ,rust-tar-0.4)
+                       ("rust-time" ,rust-time-0.3)
+                       ("rust-zip" ,rust-zip-0.6))
+       #:cargo-development-inputs (("rust-trycmd" ,rust-trycmd-0.14))))
+    (home-page "https://github.com/str4d/rage")
+    (synopsis "A simple, secure, and modern encryption tool")
+    (description "Rage is a simple, secure, and modern encryption tool.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-xremap
   (package
     (name "rust-xremap")
-- 
2.41.0