summaryrefslogtreecommitdiff
path: root/gnu/packages/shells.scm
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2016-09-20 01:35:17 +0530
committerLudovic Courtès <ludo@gnu.org>2016-10-04 11:26:45 +0200
commita8d3bc473d2cd285f03989be8f558c25a7cbd6c9 (patch)
treec4be27d67b11270462447d494ab3aa8744aa5631 /gnu/packages/shells.scm
parentc5d17d50d00a737870b5faa54fb6fc2f17dacb1a (diff)
downloadpatches-a8d3bc473d2cd285f03989be8f558c25a7cbd6c9.tar
patches-a8d3bc473d2cd285f03989be8f558c25a7cbd6c9.tar.gz
gnu: fish: Add input bc.
Fixes <http://bugs.gnu.org/24433>. * gnu/packages/shells.scm (fish)[inputs]: Add bc. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/shells.scm')
-rw-r--r--gnu/packages/shells.scm16
1 files changed, 14 insertions, 2 deletions
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 272fff7430..9114d1d0d5 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -22,6 +22,7 @@
(define-module (gnu packages shells)
#:use-module (gnu packages)
+ #:use-module (gnu packages algebra)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages documentation)
@@ -95,11 +96,22 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).")
(native-inputs
`(("doxygen" ,doxygen)))
(inputs
- `(("ncurses" ,ncurses)
+ `(("bc" ,bc)
+ ("ncurses" ,ncurses)
("python" ,python-wrapper))) ;for fish_config and manpage completions
(arguments
'(#:tests? #f ; no check target
- #:configure-flags '("--sysconfdir=/etc")))
+ #:configure-flags '("--sysconfdir=/etc")
+ #:phases
+ (modify-phases %standard-phases
+ ;; Replace 'bc' by its absolute file name in the store.
+ (add-after 'unpack 'patch-bc
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (substitute* '("share/functions/math.fish"
+ "share/functions/seq.fish")
+ (("\\| bc")
+ (string-append "| " (assoc-ref %build-inputs "bc")
+ "/bin/bc"))))))))
(synopsis "The friendly interactive shell")
(description
"Fish (friendly interactive shell) is a shell focused on interactive use,