mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
build: cargo: Use correct config file for cargo config.
* guix/build/cargo-build-system.scm (configure): Use .cargo/config as the config file. Add a note. Change-Id: Ice006c11184d4c8e1bdb765c3998b06ad299e55b
This commit is contained in:
parent
6619021d32
commit
55faf486c7
1 changed files with 2 additions and 1 deletions
|
@ -181,7 +181,8 @@ (define* (configure #:key inputs
|
|||
;; Configure cargo to actually use this new directory with all the crates.
|
||||
(setenv "CARGO_HOME" (string-append (getcwd) "/.cargo"))
|
||||
(mkdir-p ".cargo")
|
||||
(let ((port (open-file ".cargo/config.toml" "w" #:encoding "utf-8")))
|
||||
;; Not .cargo/config.toml, rustc/cargo will generate .cargo/config otherwise.
|
||||
(let ((port (open-file ".cargo/config" "w" #:encoding "utf-8")))
|
||||
;; Placed here so it doesn't cause random rebuilds. Neither of these work.
|
||||
;; sysroot = '" (assoc-ref inputs "rust-sysroot") "'
|
||||
;; rustflags = ['--sysroot', '" (assoc-ref inputs "rust-sysroot") "']
|
||||
|
|
Loading…
Reference in a new issue