summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorkiasoc5 <kiasoc5@disroot.org>2022-09-13 23:07:08 -0400
committerChristopher Baines <mail@cbaines.net>2022-09-14 08:51:35 +0100
commit592ca01d8d25849d077035d54d969d90ed5c2609 (patch)
tree7d90ec26d928103b473446ba50863160a547df74 /gnu/packages
parent76454d9af373da8b0ca5d47b278d67dc051ec09f (diff)
gnu: Add blesh.
* gnu/packages/bash.scm (blesh): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/bash.scm44
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
index 72758560cde..86af26d6481 100644
--- a/gnu/packages/bash.scm
+++ b/gnu/packages/bash.scm
@@ -37,6 +37,8 @@
37 #:use-module (gnu packages libffi) 37 #:use-module (gnu packages libffi)
38 #:use-module (gnu packages pkg-config) 38 #:use-module (gnu packages pkg-config)
39 #:use-module (gnu packages guile) 39 #:use-module (gnu packages guile)
40 #:use-module (gnu packages version-control)
41 #:use-module (gnu packages less)
40 #:use-module (guix packages) 42 #:use-module (guix packages)
41 #:use-module (guix download) 43 #:use-module (guix download)
42 #:use-module (guix git-download) 44 #:use-module (guix git-download)
@@ -456,3 +458,45 @@ in Bash, but you can use it to test any UNIX program.")
456function interface (FFI) directly in your shell. In other words, it allows 458function interface (FFI) directly in your shell. In other words, it allows
457you to call routines in shared libraries from within Bash.") 459you to call routines in shared libraries from within Bash.")
458 (license license:expat))) 460 (license license:expat)))
461
462(define-public blesh
463 (package
464 (name "blesh")
465 (version "0.4.0-devel2")
466 (source (origin
467 (method git-fetch)
468 (uri (git-reference
469 (url "https://github.com/akinomyoga/ble.sh")
470 (commit (string-append "v" version))))
471 (file-name (git-file-name name version))
472 (sha256
473 (base32
474 "02fdjyh4x6wr5hg3i86nsxhz8ysgjrvvxdmk6pqr0lm8ngw9p3sh"))))
475 (arguments
476 (list #:make-flags #~(list (string-append "PREFIX="
477 #$output))
478 #:phases #~(modify-phases %standard-phases
479 (add-after 'unpack 'pretend-contrib-.git-exists
480 (lambda _
481 (mkdir-p "contrib/.git")))
482 (add-after 'unpack 'make-readlink-work
483 (lambda _
484 (substitute* "ble.pp"
485 (("PATH=/bin:/usr/bin readlink")
486 (search-input-file %build-inputs
487 "/bin/readlink")))))
488 (delete 'configure) ;no configure
489 (add-before 'check 'use-LANG-for-tests
490 (lambda _
491 (setenv "LANG"
492 (getenv "LC_ALL"))
493 (unsetenv "LC_ALL"))))))
494 (build-system gnu-build-system)
495 (native-inputs (list less))
496 (home-page "https://github.com/akinomyoga/ble.sh")
497 (synopsis "Bash Line Editor")
498 (description
499 "Bash Line Editor (ble.sh) is a command line editor written in pure Bash
500which replaces the default GNU Readline. It adds syntax highlighting, auto
501suggestions, vim modes, and more to Bash interactive sessions.")
502 (license license:bsd-3)))