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>
This commit is contained in:
		
							parent
							
								
									c5d17d50d0
								
							
						
					
					
						commit
						a8d3bc473d
					
				
					 1 changed files with 14 additions and 2 deletions
				
			
		| 
						 | 
					@ -22,6 +22,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-module (gnu packages shells)
 | 
					(define-module (gnu packages shells)
 | 
				
			||||||
  #:use-module (gnu packages)
 | 
					  #:use-module (gnu packages)
 | 
				
			||||||
 | 
					  #:use-module (gnu packages algebra)
 | 
				
			||||||
  #:use-module (gnu packages autotools)
 | 
					  #:use-module (gnu packages autotools)
 | 
				
			||||||
  #:use-module (gnu packages base)
 | 
					  #:use-module (gnu packages base)
 | 
				
			||||||
  #:use-module (gnu packages documentation)
 | 
					  #:use-module (gnu packages documentation)
 | 
				
			||||||
| 
						 | 
					@ -95,11 +96,22 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).")
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     `(("doxygen" ,doxygen)))
 | 
					     `(("doxygen" ,doxygen)))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("ncurses" ,ncurses)
 | 
					     `(("bc" ,bc)
 | 
				
			||||||
 | 
					       ("ncurses" ,ncurses)
 | 
				
			||||||
       ("python" ,python-wrapper)))   ;for fish_config and manpage completions
 | 
					       ("python" ,python-wrapper)))   ;for fish_config and manpage completions
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     '(#:tests? #f ; no check target
 | 
					     '(#: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")
 | 
					    (synopsis "The friendly interactive shell")
 | 
				
			||||||
    (description
 | 
					    (description
 | 
				
			||||||
     "Fish (friendly interactive shell) is a shell focused on interactive use,
 | 
					     "Fish (friendly interactive shell) is a shell focused on interactive use,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue