[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: Add fzf.
From: |
guix-commits |
Subject: |
05/07: gnu: Add fzf. |
Date: |
Fri, 19 Mar 2021 18:04:03 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit f08a60bbecc46b7918986bb79a34caf537751693
Author: EuAndreh <eu@euandre.org>
AuthorDate: Mon Feb 8 14:08:27 2021 -0300
gnu: Add fzf.
* gnu/packages/terminals.scm (fzf): New variable, which inherits
from the existing go-github-com-junegunn-fzf package, but also
install other binary, and completion for direct usage.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/terminals.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index f4c97e0..3fe5805 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -824,6 +824,43 @@ programmer to write text-based user interfaces.")
usable with any list--including files, command history, processes and more.")
(license license:expat)))
+(define-public fzf
+ (package
+ (inherit go-github-com-junegunn-fzf)
+ (name "fzf")
+ (arguments
+ (ensure-keyword-arguments
+ (package-arguments go-github-com-junegunn-fzf)
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'copy-binaries
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (with-directory-excursion "src/github.com/junegunn/fzf"
+ (install-file "bin/fzf-tmux"
+ (string-append out "/bin"))))))
+ (add-after 'copy-binaries 'wrap-programs
+ (lambda* (#:key outputs inputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (ncurses (assoc-ref inputs "ncurses")))
+ (wrap-program (string-append out "/bin/fzf-tmux")
+ `("PATH" ":" prefix (,(string-append ncurses "/bin")))))))
+ (add-after 'install 'install-completions
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bash-completion (string-append out
"/etc/bash_completion.d"))
+ (zsh-completion (string-append out
"/share/zsh/site-functions")))
+ (with-directory-excursion "src/github.com/junegunn/fzf"
+ (mkdir-p bash-completion)
+ (copy-file "shell/completion.bash"
+ (string-append bash-completion "/fzf"))
+ (mkdir-p zsh-completion)
+ (copy-file "shell/completion.zsh"
+ (string-append zsh-completion "/_fzf"))))))))))
+ (inputs
+ `(,@(package-inputs go-github-com-junegunn-fzf)
+ ("ncurses" ,ncurses)))))
+
(define-public go-github.com-howeyc-gopass
(let ((commit "bf9dde6d0d2c004a008c27aaee91170c786f6db8")
(revision "0"))
- branch master updated (1ab03fb -> 6457985), guix-commits, 2021/03/19
- 01/07: download: 'tls-wrap' treats premature TLS termination as EOF., guix-commits, 2021/03/19
- 02/07: doc: Add 'shepherd-service' example., guix-commits, 2021/03/19
- 03/07: build-self: Silent Guile warnings while computing the derivation., guix-commits, 2021/03/19
- 04/07: gnu: Add git2cl., guix-commits, 2021/03/19
- 05/07: gnu: Add fzf.,
guix-commits <=
- 06/07: gnu: abseil-cpp: Update to 20200923.3., guix-commits, 2021/03/19
- 07/07: gnu: abseil-cpp: Patch sterror_test., guix-commits, 2021/03/19