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:
parent
5ecc917d5a
commit
4082f8ed34
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue