gnu: mosh: Prepare for cross-building.

Currently blocked by protobuf.

* gnu/packages/ssh.scm (mosh)[arguments]: Use SEARCH-INPUT-FILE.
This commit is contained in:
Tobias Geerinckx-Rice 2023-10-15 02:00:00 +02:00
parent 063655dbad
commit f59bbf0a97
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -477,10 +477,10 @@ (define-public mosh
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-FHS-file-names
(lambda _
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "scripts/mosh.pl"
(("/bin/sh")
(which "sh")))))
(("/bin/sh" shell)
(search-input-file inputs shell)))))
(add-after 'install 'wrap
(lambda _
;; Make sure 'mosh' can find 'mosh-client' and 'mosh-server'.