gnu: bzip2: Use install-file.

* gnu/packages/compression.scm (bzip2)[arguments]: Use simpler install-file
instead of copy-file.  Remove let binding for (now) single-use basename.
This commit is contained in:
Tobias Geerinckx-Rice 2018-02-19 23:21:12 +01:00
parent 5ecc917d5a
commit 4082f8ed34
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 3 additions and 5 deletions

View File

@ -272,11 +272,9 @@ file; as a result, it is often used in conjunction with \"tar\", resulting in
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(libdir (string-append out "/lib"))) (libdir (string-append out "/lib")))
(for-each (lambda (file) (for-each (lambda (file)
(let ((base (basename file))) (format #t "installing `~a' to `~a'~%"
(format #t "installing `~a' to `~a'~%" (basename file) libdir)
base libdir) (install-file file libdir))
(copy-file file
(string-append libdir "/" base))))
(find-files "." "^libbz2\\.so"))) (find-files "." "^libbz2\\.so")))
#t)) #t))
(add-after 'install-shared-lib 'patch-scripts (add-after 'install-shared-lib 'patch-scripts