@@ -828,9 +828,13 @@ (define-public liquidprompt
#$output
"/share/liquidprompt/liquidprompt")))))
(add-after 'fix-plugin 'fix-tput-path
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
(substitute* "liquidprompt"
- (("([ (])tput " all beg) (string-append beg #$ncurses "/bin/tput "))))))))
+ (("([ (])tput " all beginning)
+ (string-append beginning
+ (search-input-file inputs "bin/tput")
+ " "))))))))
+ (inputs (list ncurses))
(synopsis "Full-featured prompt for Bash & Zsh")
(description
"Liquidprompt is an adaptive prompt for Bash and Zsh that gives
@@ -838,18 +842,17 @@ (define-public liquidprompt
does this with a powerful theming engine and a large array of data sources.
In order to use liquidprompt with Zsh, you should use the following snippet
-with @code{guix home}:
+with Guix Home:
+
@example
-(services (list ;;...
- (service home-zsh-service-type
- (home-zsh-configuration
- (zshrc (list ;;...
- ;; This loads liquidprompt
- (mixed-text-file \"liquidprompt\"
- \"[[ $- = *i* ]] && source \" liquidprompt \"/share/liquidprompt/liquidprompt\")
- ;; This loads the powerline theme available in liquidprompt
- (mixed-text-file \"powerline-theme\"
- \"source \" liquidprompt \"/share/liquidprompt/themes/powerline/powerline.theme\")))))))
-@end example
-")
- (license license:agpl3)))
+(service home-zsh-service-type
+ (home-zsh-configuration
+ (zshrc (list ;;...
+ ;; This loads liquidprompt
+ (mixed-text-file \"liquidprompt\"
+ \"[[ $- = *i* ]] && source \" liquidprompt \"/share/liquidprompt/liquidprompt\")
+ ;; This loads the powerline theme available in liquidprompt
+ (mixed-text-file \"powerline-theme\"
+ \"source \" liquidprompt \"/share/liquidprompt/themes/powerline/powerline.theme\"))))))
+@end example\n")
+ (license license:agpl3+)))