gnu: inxi-minimal: Reduce reliance on input names.

* gnu/packages/admin.scm (inxi-minimal)[arguments]:
Use SEARCH-INPUT-FILE.
This commit is contained in:
Tobias Geerinckx-Rice 2022-12-11 01:00:02 +01:00
parent 932409da9c
commit bd268c21e5
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -4332,10 +4332,14 @@ (define-public inxi-minimal
(use-modules (guix build utils)
(ice-9 match)
(srfi srfi-26))
(setenv "PATH" (string-append
(assoc-ref %build-inputs "bash") "/bin" ":"
(assoc-ref %build-inputs "gzip") "/bin" ":"
(assoc-ref %build-inputs "perl") "/bin" ":"))
(setenv "PATH" (string-join
(map (lambda (file)
(dirname (search-input-file %build-inputs
file)))
(list "bin/bash"
"bin/gzip"
"bin/perl"))
":"))
(copy-recursively (assoc-ref %build-inputs "source")
,(string-append real-name "-" version))
(with-directory-excursion ,(string-append real-name "-" version)