guix-commits
[Top][All Lists]
Advanced

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

30/127: gnu: Add rust-rustls-pemfile-2.


From: guix-commits
Subject: 30/127: gnu: Add rust-rustls-pemfile-2.
Date: Tue, 26 Dec 2023 06:42:34 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 0c42b70143b84c11e26278b95f884879c62eb6df
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Dec 24 10:06:19 2023 +0200

    gnu: Add rust-rustls-pemfile-2.
    
    * gnu/packages/crates-io.scm (rust-rustls-pemfile-2): New variable.
    (rust-rustls-pemfile-1): Inherit from rust-rustls-pemfile-2.
    
    Change-Id: I347dc07e505bbe887402265db6ee5556757fd299
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1b1b2d6ba2..83bc7b38b1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -67309,29 +67309,46 @@ native certificate store.")
         ("rust-webpki-roots" ,rust-webpki-roots-0.20))))
     (native-inputs (list perl))))
 
-(define-public rust-rustls-pemfile-1
+(define-public rust-rustls-pemfile-2
   (package
     (name "rust-rustls-pemfile")
-    (version "1.0.3")
+    (version "2.0.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "rustls-pemfile" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1cplx6hgkr32nq31p3613b2sj7csrrq3zp6znx9vc1qx9c4qff9d"))))
+        (base32 "1x34xidvzn4br2vl8f8xwmhgbjv4lmlb0ggv5whlnk4yl87rir1m"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-base64" ,rust-base64-0.21))
-       #:cargo-development-inputs
-       (("rust-bencher" ,rust-bencher-0.1))))
+     `(#:cargo-inputs (("rust-base64" ,rust-base64-0.21)
+                       ("rust-rustls-pki-types" ,rust-rustls-pki-types-1))
+       #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1))))
     (home-page "https://github.com/rustls/pemfile";)
     (synopsis "Basic parser for PEM formatted keys and certificates")
     (description "This package provides a very basic parser for the
 PEM-encodings commonly used to store keys and certificates at rest.")
     (license (list license:asl2.0 license:isc license:expat))))
 
+(define-public rust-rustls-pemfile-1
+  (package
+    (inherit rust-rustls-pemfile-2)
+    (name "rust-rustls-pemfile")
+    (version "1.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rustls-pemfile" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1cplx6hgkr32nq31p3613b2sj7csrrq3zp6znx9vc1qx9c4qff9d"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-base64" ,rust-base64-0.21))
+       #:cargo-development-inputs
+       (("rust-bencher" ,rust-bencher-0.1))))))
+
 (define-public rust-rustls-pemfile-0.2
   (package
     (inherit rust-rustls-pemfile-1)



reply via email to

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