guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#68819] [PATCH 13/49] gnu: Add rust-maildir-0.6.


From: Herman Rimm
Subject: [bug#68819] [PATCH 13/49] gnu: Add rust-maildir-0.6.
Date: Tue, 30 Jan 2024 16:24:56 +0100

* gnu/packages/crates-io.scm (rust-maildir-0.6): Add variable.
(rust-maildir-0.5): Inherit from rust-maildir-0.6.

Change-Id: Iaeb447ffbec76d92ef146562b329f92bbf8fb6f7
---
 gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 806073c92d..56c8a995cc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -35106,8 +35106,35 @@ (define-public rust-magic-string-0.3
      "This package provides a MagicString port driven by Rust and N-API.")
     (license license:expat)))
 
+(define-public rust-maildir-0.6
+  (package
+    (name "rust-maildir")
+    (version "0.6.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "maildir" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0dqlkvhcrigs4y5vg0jf8ccgwns8jj85cjp6vsgj3f1sfkk6m6l7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-gethostname" ,rust-gethostname-0.2)
+                       ("rust-mailparse" ,rust-mailparse-0.14)
+                       ("rust-memmap2" ,rust-memmap2-0.5))
+       #:cargo-development-inputs
+       (("rust-percent-encoding" ,rust-percent-encoding-1)
+        ("rust-tempfile" ,rust-tempfile-3)
+        ("rust-walkdir" ,rust-walkdir-2))))
+    (home-page "https://github.com/staktrace/maildir/blob/master/README.md";)
+    (synopsis "Simple library for maildir manipulation")
+    (description
+     "This package provides a simple library for maildir manipulation")
+    (license license:bsd-0)))
+
 (define-public rust-maildir-0.5
   (package
+    (inherit rust-maildir-0.6)
     (name "rust-maildir")
     (version "0.5.0")
     (source
@@ -35117,7 +35144,6 @@ (define-public rust-maildir-0.5
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0pivq6njjmfnf0jn6i8sihbfgly6v674zwncd6f5nwiw79lz9p3a"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-gethostname" ,rust-gethostname-0.2)
@@ -35126,12 +35152,7 @@ (define-public rust-maildir-0.5
        #:cargo-development-inputs
        (("rust-percent-encoding" ,rust-percent-encoding-1)
         ("rust-tempfile" ,rust-tempfile-3)
-        ("rust-walkdir" ,rust-walkdir-2))))
-    (home-page "https://github.com/staktrace/maildir";)
-    (synopsis "Simple library for maildir manipulation")
-    (description
-     "This package provides a simple library for maildir manipulation.")
-    (license license:bsd-0)))
+        ("rust-walkdir" ,rust-walkdir-2))))))
 
 (define-public rust-mailparse-0.14
   (package
-- 
2.41.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]