From 9b7a9580d46e7c2840e7cbd9bb0bfa2fb9dd654f Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Wed, 22 Mar 2017 17:40:06 +0100 Subject: gnu: rustc: Honor max line length. * gnu/packages/rust.scm (rustc)[arguments]: patch-tests: Honor max line length. --- gnu/packages/rust.scm | 11 ++++++----- 1 file 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")) -- cgit 1.4.1