aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2019-08-11 15:07:05 -0700
committerIvan Petkov <ivanppetkov@gmail.com>2019-08-29 17:43:44 -0700
commit02c61278f1327d403f072f42e6b92a1dc62fc93a (patch)
tree0b5ee194447c5d75848901d130a0f107d0af61a2
parentc3e59de9b1340f1a0ef7e30dd2e4e7bf7b484ee9 (diff)
downloadguix-02c61278f1327d403f072f42e6b92a1dc62fc93a.tar.gz
guix-02c61278f1327d403f072f42e6b92a1dc62fc93a.zip
gnu: rust: Update to 1.37.0.
* gnu/packages/rust.scm (rust): Rename to... (rust-1.36): ...this. (rust): New variable.
-rw-r--r--gnu/packages/rust.scm19
1 files changed, 18 insertions, 1 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index b4c50437f7..6d1b9f1fe4 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1073,7 +1073,7 @@ jemalloc = \"" jemalloc "/lib/libjemalloc_pic.a" "\"
(("bins::check") "//bins::check"))
#t)))))))))
-(define-public rust
+(define-public rust-1.36
(let ((base-rust
(rust-bootstrapped-package rust-1.35 "1.36.0"
"06xv2p6zq03lidr0yaf029ii8wnjjqa894nkmrm6s0rx47by9i04")))
@@ -1084,3 +1084,20 @@ jemalloc = \"" jemalloc "/lib/libjemalloc_pic.a" "\"
((#:phases phases)
`(modify-phases ,phases
(delete 'patch-process-docs-rev-cmd))))))))
+
+(define-public rust
+ (let ((base-rust
+ (rust-bootstrapped-package rust-1.36 "1.37.0"
+ "1hrqprybhkhs6d9b5pjskfnc5z9v2l2gync7nb39qjb5s0h703hj")))
+ (package
+ (inherit base-rust)
+ (arguments
+ (substitute-keyword-arguments (package-arguments base-rust)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-before 'configure 'configure-cargo-home
+ (lambda _
+ (let ((cargo-home (string-append (getcwd) "/.cargo")))
+ (mkdir-p cargo-home)
+ (setenv "CARGO_HOME" cargo-home)
+ #t))))))))))