gnu: Add rust-rcgen-0.9.

* gnu/packages/crates-tls.scm (rust-rcgen-0.9): New variable.

Change-Id: Ibf2307d3019ed2bcaf0ae0c6af6a4235f77d7fd1
This commit is contained in:
Efraim Flashner 2024-01-29 09:02:27 +02:00
parent 6aee907e87
commit 2658bd5dd8
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -791,6 +791,37 @@ (define-public rust-rcgen-0.10
("rust-webpki" ,rust-webpki-0.22) ("rust-webpki" ,rust-webpki-0.22)
("rust-x509-parser" ,rust-x509-parser-0.14)))))) ("rust-x509-parser" ,rust-x509-parser-0.14))))))
(define-public rust-rcgen-0.9
(package
(inherit rust-rcgen-0.11)
(name "rust-rcgen")
(version "0.9.3")
(source
(origin
(method url-fetch)
(uri (crate-uri "rcgen" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1pdwrza2j6bv94nxcfrb6dpbrrrjdnspb3hkwr137rfy3vgg64v4"))
(snippet
#~(begin (use-modules (guix build utils))
;; Don't use a vendored botan.
(substitute* "Cargo.toml"
((".*vendored.*") ""))))))
(arguments
`(#:cargo-inputs (("rust-pem" ,rust-pem-1)
("rust-ring" ,rust-ring-0.16)
("rust-time" ,rust-time-0.3)
("rust-x509-parser" ,rust-x509-parser-0.13)
("rust-yasna" ,rust-yasna-0.5)
("rust-zeroize" ,rust-zeroize-1))
#:cargo-development-inputs (("rust-botan" ,rust-botan-0.8)
("rust-openssl" ,rust-openssl-0.10)
("rust-rand" ,rust-rand-0.8)
("rust-rsa" ,rust-rsa-0.5)
("rust-webpki" ,rust-webpki-0.22)
("rust-x509-parser" ,rust-x509-parser-0.13))))))
(define-public rust-rcgen-0.8 (define-public rust-rcgen-0.8
(package (package
(inherit rust-rcgen-0.11) (inherit rust-rcgen-0.11)