gnu: lesspipe: Patch paths to inputs.

* gnu/packages/less.scm (lesspipe)[arguments]: Add phase to patch
paths to tput and file.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
Michael Rohleder 2020-08-22 18:40:12 +02:00 committed by Leo Famulari
parent 1bb4fd64b7
commit 5a4990b982
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08

View File

@ -80,7 +80,17 @@ text editors.")
(invoke "./configure"
(string-append "--prefix=" out)
"--yes")
#t))))))
#t)))
(add-before 'install 'patch-tput-and-file
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "lesspipe.sh"
(("tput colors")
(string-append (assoc-ref inputs "ncurses")
"/bin/tput colors"))
(("file -")
(string-append (assoc-ref inputs "file")
"/bin/file -")))
#t)))))
(inputs
`(("file" ,file)
("ncurses" ,ncurses))) ; for tput