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

View file

@ -272,11 +272,9 @@ (define-public bzip2
(let* ((out (assoc-ref outputs "out"))
(libdir (string-append out "/lib")))
(for-each (lambda (file)
(let ((base (basename file)))
(format #t "installing `~a' to `~a'~%"
base libdir)
(copy-file file
(string-append libdir "/" base))))
(format #t "installing `~a' to `~a'~%"
(basename file) libdir)
(install-file file libdir))
(find-files "." "^libbz2\\.so")))
#t))
(add-after 'install-shared-lib 'patch-scripts