[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: lesspipe: Patch paths to inputs.
From: |
guix-commits |
Subject: |
branch master updated: gnu: lesspipe: Patch paths to inputs. |
Date: |
Sat, 22 Aug 2020 17:46:43 -0400 |
This is an automated email from the git hooks/post-receive script.
lfam pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 5a4990b gnu: lesspipe: Patch paths to inputs.
5a4990b is described below
commit 5a4990b98260ba85b8b93d6ac43d871e370d6983
Author: Michael Rohleder <mike@rohleder.de>
AuthorDate: Sat Aug 22 18:40:12 2020 +0200
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>
---
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 f6ee355..7c5107d 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: lesspipe: Patch paths to inputs.,
guix-commits <=