[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42988] [PATCH] gnu: lesspipe: Patch paths to inputs.
From: |
Michael Rohleder |
Subject: |
[bug#42988] [PATCH] gnu: lesspipe: Patch paths to inputs. |
Date: |
Sat, 22 Aug 2020 18:40:12 +0200 |
* 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
- [bug#42988] [PATCH] gnu: lesspipe: Patch paths to inputs.,
Michael Rohleder <=