gnu: dehydrated: Don't rely on implicit input labels.

* gnu/packages/tls.scm (dehydrated)[arguments]:
Use SEARCH-INPUT-FILE instead of ASSOC-REF.
This commit is contained in:
Tobias Geerinckx-Rice 2022-10-30 02:00:00 +01:00
parent c744992715
commit 08d60c8691
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1156,18 +1156,19 @@ (define-public dehydrated
(setenv "PATH" bash)
(wrap-program "dehydrated"
`("PATH" ":" prefix
,(map (lambda (dir)
(string-append dir "/bin"))
(map (lambda (input)
(assoc-ref %build-inputs input))
'("coreutils"
"curl"
"diffutils"
"gawk"
"grep"
"openssl"
"sed"
"util-linux-with-udev"))))))))))
,(map (lambda (file)
(dirname (search-input-file %build-inputs file)))
(list
;; From check_dependencies() — keep them in sync.
"bin/grep"
"bin/diff"
"bin/sed"
"bin/awk"
"bin/curl"
"bin/cut" ; also mktemp, head, tail
"bin/hexdump"
;; Additional requirements.
"bin/openssl")))))))))
(inputs
(list bash
coreutils