gnu: zoxide: Reference ‘zoxide’ executable by store path.

* gnu/packages/rust-apps.scm (zoxide)[arguments]<#:phases>: Patch references
of ‘zoxide’ executable.

Change-Id: I45e51d538904f5b9fbebacd1ece13c01bf076d1e
This commit is contained in:
Hilton Chain 2025-02-18 11:50:54 +08:00
parent d1a04765ba
commit 01e577e7a0
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -5082,6 +5082,13 @@ minimum contrast levels, and more.")
("rust-tempfile" ,rust-tempfile-3))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-references
(lambda _
(substitute* (find-files "templates")
(("zoxide (add|query)" all)
(string-append #$output "/bin/" all))
(("(zoxide = \")(zoxide)" _ prefix suffix)
(string-append prefix #$output "/bin/" suffix)))))
(add-after 'install 'install-more
(lambda _
(let* ((out #$output)