gnu: tree: Rewrite with gexps.

* gnu/packages/admin.scm (tree)[arguments]: Rewrite with gexps.
This commit is contained in:
Efraim Flashner 2022-01-12 12:42:12 +02:00
parent e773326cc2
commit 2d3bec89b5
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2405,11 +2405,14 @@ (define-public tree
(base32 "0f92vx6gpz7v29wi9clklzah57v7lgx5kv0m1w4b9xjc35d9qcz3"))))
(build-system gnu-build-system)
(arguments
`(#:phases (modify-phases %standard-phases (delete 'configure))
#:tests? #f ; no check target
#:make-flags (let ((out (assoc-ref %outputs "out")))
(list (string-append "PREFIX=" out)
(string-append "CC=" ,(cc-for-target))))))
(list
#:phases
#~(modify-phases %standard-phases
(delete 'configure)) ; No configure script.
#:tests? #f ; No check target.
#:make-flags
#~(list (string-append "PREFIX=" #$output)
(string-append "CC=" #$(cc-for-target)))))
(synopsis "Recursively list the contents of a directory")
(description
"Tree is a recursive directory listing command that produces a depth