* [bug#70674] [PATCH core-updates 0/1] Allow cargo to use custom SSL certificates
@ 2024-04-30 14:11 Jean-Baptiste Note
2024-04-30 14:17 ` [bug#70674] [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path Jean-Baptiste Note
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 14:11 UTC (permalink / raw)
To: 70674; +Cc: Jean-Baptiste Note, Efraim Flashner
Cargo, just like git, allows certificate validation against a customized set
of certificates. Add the required native-path for this, just like
GIT_SSL_CAINFO for git.
Jean-Baptiste Note (1):
gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.
gnu/packages/rust.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
--
2.41.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#70674] [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.
2024-04-30 14:11 [bug#70674] [PATCH core-updates 0/1] Allow cargo to use custom SSL certificates Jean-Baptiste Note
@ 2024-04-30 14:17 ` Jean-Baptiste Note
2024-12-26 13:43 ` bug#70674: " Efraim Flashner
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Baptiste Note @ 2024-04-30 14:17 UTC (permalink / raw)
To: 70674; +Cc: Jean-Baptiste Note, Efraim Flashner
* gnu/packages/rust.scm (rust-1.55): Add CARGO_HTTP_CAINFO native-search-path
so that Cargo honors custom certificates (a la GIT_SSL_CAINFO).
---
gnu/packages/rust.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 60aa9b1ea0..aaba458933 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -539,9 +539,18 @@ (define-public rust-1.55
(inputs
`(("llvm" ,llvm-13)
("openssl" ,openssl)))
- ;; rustc invokes gcc, so we need to set its search paths accordingly.
(native-search-paths
- %gcc-search-paths)
+ (cons
+ ;; For HTTPS access, Cargo reads from a single-file certificate
+ ;; specified with $CARGO_HTTP_CAINFO. See
+ ;; https://doc.rust-lang.org/cargo/reference/environment-variables.html
+ (search-path-specification
+ (variable "CARGO_HTTP_CAINFO")
+ (file-type 'regular)
+ (separator #f) ;single entry
+ (files '("etc/ssl/certs/ca-certificates.crt")))
+ ;; rustc invokes gcc, so we need to set its search paths accordingly.
+ %gcc-search-paths))
;; Limit this to systems where the final rust compiler builds successfully.
(supported-systems '("x86_64-linux" "aarch64-linux" "riscv64-linux"))
(synopsis "Compiler for the Rust programming language")
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-26 13:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-30 14:11 [bug#70674] [PATCH core-updates 0/1] Allow cargo to use custom SSL certificates Jean-Baptiste Note
2024-04-30 14:17 ` [bug#70674] [PATCH core-updates 1/1] gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path Jean-Baptiste Note
2024-12-26 13:43 ` bug#70674: " Efraim Flashner
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.