mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.
* gnu/packages/rust.scm (rust)[native-search-paths]: Add CARGO_HTTP_CAINFO native-search-path so that Cargo honors custom certificates (a la GIT_SSL_CAINFO). Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: I3eca13d8e12cbfd680cd33e22ff6d1aea7a7e379
This commit is contained in:
committed by
Efraim Flashner
parent
f5d95d6d19
commit
7c43acd025
@@ -1404,7 +1404,19 @@ exec -a \"$0\" \"~a\" \"$@\""
|
||||
;; Add test inputs.
|
||||
`("gdb" ,gdb/pinned)
|
||||
`("procps" ,procps)
|
||||
(package-native-inputs base-rust))))))
|
||||
(package-native-inputs base-rust)))
|
||||
(native-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)))))
|
||||
|
||||
(define*-public (make-rust-sysroot target)
|
||||
(make-rust-sysroot/implementation target rust))
|
||||
|
||||
Reference in New Issue
Block a user