mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-28 19:56:59 -06: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:
parent
f5d95d6d19
commit
7c43acd025
1 changed files with 13 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue