summaryrefslogtreecommitdiff
path: root/gnu/packages/bash.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-09-15 11:29:02 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-09-15 11:43:21 -0400
commit4920f6e634eeecb37b501bdc024dfe0aab849ed0 (patch)
treec7dd5859715071cb602133b67449a29488027f70 /gnu/packages/bash.scm
parent513091dbd2eeba138b558f5f9bb1ee6e68eee01d (diff)
parent3d297a0017210f1dd135592efb10846840a8af88 (diff)
Merge branch 'staging' into core-updates
Conflicts resolved in: gnu/local.mk gnu/packages/cmake.scm gnu/packages/glib.scm gnu/packages/gnome.scm gnu/packages/gtk.scm gnu/packages/sdl.scm pango-next, vala-next and librsvg-bootstrap were removed in the process.
Diffstat (limited to 'gnu/packages/bash.scm')
-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 080db6acfb1..8c447b0921b 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)
@@ -439,3 +441,45 @@ in Bash, but you can use it to test any UNIX program.")
439function interface (FFI) directly in your shell. In other words, it allows 441function interface (FFI) directly in your shell. In other words, it allows
440you to call routines in shared libraries from within Bash.") 442you to call routines in shared libraries from within Bash.")
441 (license license:expat))) 443 (license license:expat)))
444
445(define-public blesh
446 (package
447 (name "blesh")
448 (version "0.4.0-devel2")
449 (source (origin
450 (method git-fetch)
451 (uri (git-reference
452 (url "https://github.com/akinomyoga/ble.sh")
453 (commit (string-append "v" version))))
454 (file-name (git-file-name name version))
455 (sha256
456 (base32
457 "02fdjyh4x6wr5hg3i86nsxhz8ysgjrvvxdmk6pqr0lm8ngw9p3sh"))))
458 (arguments
459 (list #:make-flags #~(list (string-append "PREFIX="
460 #$output))
461 #:phases #~(modify-phases %standard-phases
462 (add-after 'unpack 'pretend-contrib-.git-exists
463 (lambda _
464 (mkdir-p "contrib/.git")))
465 (add-after 'unpack 'make-readlink-work
466 (lambda _
467 (substitute* "ble.pp"
468 (("PATH=/bin:/usr/bin readlink")
469 (search-input-file %build-inputs
470 "/bin/readlink")))))
471 (delete 'configure) ;no configure
472 (add-before 'check 'use-LANG-for-tests
473 (lambda _
474 (setenv "LANG"
475 (getenv "LC_ALL"))
476 (unsetenv "LC_ALL"))))))
477 (build-system gnu-build-system)
478 (native-inputs (list less))
479 (home-page "https://github.com/akinomyoga/ble.sh")
480 (synopsis "Bash Line Editor")
481 (description
482 "Bash Line Editor (ble.sh) is a command line editor written in pure Bash
483which replaces the default GNU Readline. It adds syntax highlighting, auto
484suggestions, vim modes, and more to Bash interactive sessions.")
485 (license license:bsd-3)))