gnu: Add sh-z shell tool
* gnu/packages/shellutils.scm (sh-z): New variable. Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
This commit is contained in:
parent
695ee52eb5
commit
f5fd56da74
@ -5,6 +5,7 @@
|
||||
;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
|
||||
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
|
||||
;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
@ -33,11 +34,48 @@ (define-module (gnu packages shellutils)
|
||||
#:use-module (gnu packages ncurses)
|
||||
#:use-module (gnu packages readline)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system go)
|
||||
#:use-module (guix build-system python))
|
||||
|
||||
(define-public sh-z
|
||||
(package
|
||||
(name "sh-z")
|
||||
(version "1.11")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/rupa/z.git")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"13zbgkj6y0qhvn5jpkrqbd4jjxjr789k228iwma5hjfh1nx7ghyb"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f ; No tests provided
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(delete 'build)
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(man (string-append out "/share/man/man1"))
|
||||
(bin (string-append out "/bin")))
|
||||
(install-file "z.sh" bin)
|
||||
(chmod (string-append bin "/z.sh") #o755)
|
||||
(install-file "z.1" man)))))))
|
||||
(synopsis "Jump about directories")
|
||||
(description
|
||||
"Tracks your most used directories, based on ``frecency''. After a short
|
||||
learning phase, z will take you to the most ``frecent'' directory that matches
|
||||
ALL of the regexes given on the command line in order.")
|
||||
(home-page "https://github.com/rupa/z")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public envstore
|
||||
(package
|
||||
(name "envstore")
|
||||
|
Loading…
Reference in New Issue
Block a user