Skip to content
Snippets Groups Projects
Unverified Commit 5a4990b9 authored by Michael Rohleder's avatar Michael Rohleder Committed by Leo Famulari
Browse files

gnu: lesspipe: Patch paths to inputs.


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

Signed-off-by: default avatarLeo Famulari <leo@famulari.name>
parent 1bb4fd64
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,17 @@ (define-public lesspipe ...@@ -80,7 +80,17 @@ (define-public lesspipe
(invoke "./configure" (invoke "./configure"
(string-append "--prefix=" out) (string-append "--prefix=" out)
"--yes") "--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 (inputs
`(("file" ,file) `(("file" ,file)
("ncurses" ,ncurses))) ; for tput ("ncurses" ,ncurses))) ; for tput
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment