gnu: rustc: Honor max line length.

* gnu/packages/rust.scm (rustc)[arguments]: patch-tests: Honor max line
length.
This commit is contained in:
Danny Milosavljevic 2017-03-22 17:40:06 +01:00
parent 61a3137bdd
commit 9b7a9580d4
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -238,11 +238,12 @@ (define-public rustc
#t)) #t))
(add-after 'unpack 'patch-tests (add-after 'unpack 'patch-tests
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((bash (assoc-ref inputs "bash")))
(substitute* "src/tools/tidy/src/main.rs" (substitute* "src/tools/tidy/src/main.rs"
(("^.*cargo.*::check.*$") "")) (("^.*cargo.*::check.*$") ""))
(substitute* "src/libstd/process.rs" (substitute* "src/libstd/process.rs"
(("\"/bin/sh\"") (string-append "\"" (assoc-ref inputs "bash") "/bin/sh\""))) (("\"/bin/sh\"") (string-append "\"" bash "/bin/sh\"")))
#t)) #t)))
(replace 'configure (replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))