aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2017-03-22 17:40:06 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2017-03-22 17:41:44 +0100
commit9b7a9580d46e7c2840e7cbd9bb0bfa2fb9dd654f (patch)
tree1d5031c123277d4d8a1fc91a78dc81dca47ccecb
parent61a3137bdd72b87aa4a4d4ce9b764fac05e835bb (diff)
downloadguix-9b7a9580d46e7c2840e7cbd9bb0bfa2fb9dd654f.tar
guix-9b7a9580d46e7c2840e7cbd9bb0bfa2fb9dd654f.tar.gz
gnu: rustc: Honor max line length.
* gnu/packages/rust.scm (rustc)[arguments]: patch-tests: Honor max line length.
-rw-r--r--gnu/packages/rust.scm11
1 files changed, 6 insertions, 5 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index b72a206e6a..af4d322a73 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -238,11 +238,12 @@ rustc-bootstrap and cargo-bootstrap packages.")
#t))
(add-after 'unpack 'patch-tests
(lambda* (#:key inputs #:allow-other-keys)
- (substitute* "src/tools/tidy/src/main.rs"
- (("^.*cargo.*::check.*$") ""))
- (substitute* "src/libstd/process.rs"
- (("\"/bin/sh\"") (string-append "\"" (assoc-ref inputs "bash") "/bin/sh\"")))
- #t))
+ (let ((bash (assoc-ref inputs "bash")))
+ (substitute* "src/tools/tidy/src/main.rs"
+ (("^.*cargo.*::check.*$") ""))
+ (substitute* "src/libstd/process.rs"
+ (("\"/bin/sh\"") (string-append "\"" bash "/bin/sh\"")))
+ #t)))
(replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))