summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-11-20 20:44:21 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:05:32 +0200
commit6595340031977eb078fd7fc68b6e7b3eb95c1237 (patch)
tree7ed2eb9ab0aead5838688598bc382b8f5f389429 /gnu/packages
parenta8e972e5daabeb778e90bc0b194dbc968e67d203 (diff)
gnu: Add rust-rcgen-0.13.
* gnu/packages/crates-tls.scm (rust-rcgen-0.13): New variable. (rust-rcgen-0.12): Inherit from rust-rcgen-0.13. Change-Id: Ia98fd39a8d96e94a88ba4623c35143d4750c962f
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-tls.scm54
1 files changed, 44 insertions, 10 deletions
diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm
index 4751670923d..0ac470488b0 100644
--- a/gnu/packages/crates-tls.scm
+++ b/gnu/packages/crates-tls.scm
@@ -1070,8 +1070,51 @@ grammars and BER/DER encodings, for example.")
"This package provides ASN1 types defined by X.509 related RFCs.")
(license (list license:expat license:asl2.0))))
+(define-public rust-rcgen-0.13
+ (package
+ (name "rust-rcgen")
+ (version "0.13.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "rcgen" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0yb7lg0pd1j66jr0kacs5z8q66fb9izkvsp11ma8hry4f8c7w1sl"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Don't use a vendored botan.
+ (substitute* "Cargo.toml"
+ ((".*vendored.*") ""))))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-aws-lc-rs" ,rust-aws-lc-rs-1)
+ ("rust-pem" ,rust-pem-3)
+ ("rust-ring" ,rust-ring-0.17)
+ ("rust-rustls-pki-types" ,rust-rustls-pki-types-1)
+ ("rust-time" ,rust-time-0.3)
+ ("rust-x509-parser" ,rust-x509-parser-0.16)
+ ("rust-yasna" ,rust-yasna-0.5)
+ ("rust-zeroize" ,rust-zeroize-1))
+ #:cargo-development-inputs (("rust-botan" ,rust-botan-0.10)
+ ("rust-openssl" ,rust-openssl-0.10)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-ring" ,rust-ring-0.17)
+ ("rust-rsa" ,rust-rsa-0.9)
+ ("rust-rustls-pki-types" ,rust-rustls-pki-types-1)
+ ("rust-rustls-webpki" ,rust-rustls-webpki-0.102)
+ ("rust-x509-parser" ,rust-x509-parser-0.16))))
+ (native-inputs (list pkg-config))
+ (inputs (list botan openssl))
+ (home-page "https://github.com/rustls/rcgen")
+ (synopsis "Rust X.509 certificate generator")
+ (description "This package provides Rust X.509 certificate generator.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-rcgen-0.12
(package
+ (inherit rust-rcgen-0.13)
(name "rust-rcgen")
(version "0.12.1")
(source (origin
@@ -1087,7 +1130,6 @@ grammars and BER/DER encodings, for example.")
;; Don't use a vendored botan.
(substitute* "Cargo.toml"
((".*vendored.*") ""))))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-aws-lc-rs" ,rust-aws-lc-rs-1)
@@ -1104,15 +1146,7 @@ grammars and BER/DER encodings, for example.")
("rust-ring" ,rust-ring-0.17)
("rust-rsa" ,rust-rsa-0.9)
("rust-rustls-webpki" ,rust-rustls-webpki-0.101)
- ("rust-x509-parser" ,rust-x509-parser-0.15))))
- (native-inputs
- (list pkg-config))
- (inputs
- (list botan openssl))
- (home-page "https://github.com/rustls/rcgen")
- (synopsis "Rust X.509 certificate generator")
- (description "Rust X.509 certificate generator.")
- (license (list license:expat license:asl2.0))))
+ ("rust-x509-parser" ,rust-x509-parser-0.15))))))
(define-public rust-rcgen-0.11
(package