mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu: zstd: Fix unnecessary dependency upon $PATH.
* gnu/packages/compression (zstd)[arguments]: Add a 'patch-command-file-names phase.
This commit is contained in:
parent
76b689f339
commit
57e8e8c916
1 changed files with 13 additions and 0 deletions
|
@ -1423,6 +1423,19 @@ (define-public zstd
|
|||
(("error configured .*dir ")
|
||||
"true "))
|
||||
#t))
|
||||
(add-after 'unpack 'patch-command-file-names
|
||||
;; Don't require hard requirements to be in $PATH.
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(our (lambda (name) (string-append out "/bin/" name))))
|
||||
(substitute* "programs/zstdgrep"
|
||||
(("(:-)(grep)" _ prefix command)
|
||||
(string-append prefix (which command)))
|
||||
(("(:-)(zstdcat)" _ prefix command)
|
||||
(string-append prefix (our command))))
|
||||
(substitute* "programs/zstdless"
|
||||
(("zstdcat" command)
|
||||
(our command))))))
|
||||
(delete 'configure) ;no configure script
|
||||
(add-after 'install 'adjust-library-locations
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue