* [bug#42988] [PATCH] gnu: lesspipe: Patch paths to inputs.
@ 2020-08-22 16:40 Michael Rohleder
2020-08-22 21:46 ` bug#42988: " Leo Famulari
0 siblings, 1 reply; 2+ messages in thread
From: Michael Rohleder @ 2020-08-22 16:40 UTC (permalink / raw)
To: 42988; +Cc: Michael Rohleder
* gnu/packages/less.scm (lesspipe)[arguments]: Add phase to patch
paths to tput and file.
---
gnu/packages/less.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/less.scm b/gnu/packages/less.scm
index f6ee355b68..7c5107de09 100644
--- a/gnu/packages/less.scm
+++ b/gnu/packages/less.scm
@@ -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
--
2.28.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#42988: [PATCH] gnu: lesspipe: Patch paths to inputs.
2020-08-22 16:40 [bug#42988] [PATCH] gnu: lesspipe: Patch paths to inputs Michael Rohleder
@ 2020-08-22 21:46 ` Leo Famulari
0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2020-08-22 21:46 UTC (permalink / raw)
To: Michael Rohleder; +Cc: 42988-done
On Sat, Aug 22, 2020 at 06:40:12PM +0200, Michael Rohleder wrote:
> * gnu/packages/less.scm (lesspipe)[arguments]: Add phase to patch
> paths to tput and file.
Thanks! Pushed as 5a4990b98260ba85b8b93d6ac43d871e370d6983
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-22 21:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 16:40 [bug#42988] [PATCH] gnu: lesspipe: Patch paths to inputs Michael Rohleder
2020-08-22 21:46 ` bug#42988: " Leo Famulari
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).