diff options
| author | Sisiutl <sisiutl@egregore.fun> | 2024-11-20 17:29:30 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-11-29 15:45:18 +0100 |
| commit | f92f6f0a59554d6da976b99daca9c30ce475592a (patch) | |
| tree | d35ec13db34e9c74d3b5831f500ff49c46614b82 /gnu | |
| parent | 94bb6a5a88b17da1178fdc1d16cb87b9913bc1c1 (diff) | |
gnu: liquidprompt: Patch additional utilities
* gnu/packages/shellutils.scm (liquidprompt)
[inputs]: Add coreutils and inetutils.
[arguments]<#:phases>: Replace the paths of more utilites
Change-Id: I84578ca40300a7527a23e5d8c3257d49be911a7b
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/shellutils.scm | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 7e9f85a5f25..74e9429de09 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm | |||
| @@ -47,6 +47,7 @@ | |||
| 47 | #:use-module (guix build-system gnu) | 47 | #:use-module (guix build-system gnu) |
| 48 | #:use-module (guix build-system go) | 48 | #:use-module (guix build-system go) |
| 49 | #:use-module (guix build-system python) | 49 | #:use-module (guix build-system python) |
| 50 | #:use-module (gnu packages admin) | ||
| 50 | #:use-module (gnu packages autotools) | 51 | #:use-module (gnu packages autotools) |
| 51 | #:use-module (gnu packages base) | 52 | #:use-module (gnu packages base) |
| 52 | #:use-module (gnu packages bison) | 53 | #:use-module (gnu packages bison) |
| @@ -946,14 +947,19 @@ source ${GUIX_ENVIRONMENT:-$HOME/.guix-profile}/etc/profile.d/grc.sh | |||
| 946 | (string-append "source " | 947 | (string-append "source " |
| 947 | #$output | 948 | #$output |
| 948 | "/share/liquidprompt/liquidprompt"))))) | 949 | "/share/liquidprompt/liquidprompt"))))) |
| 949 | (add-after 'fix-plugin 'fix-tput-path | 950 | (add-after 'fix-plugin 'fix-utils-path |
| 950 | (lambda* (#:key inputs #:allow-other-keys) | 951 | (lambda* (#:key inputs #:allow-other-keys) |
| 951 | (substitute* "liquidprompt" | 952 | (substitute* "liquidprompt" |
| 952 | (("([ (])tput " all beginning) | 953 | (("([ (])\\\\?(tput|hostname|cksum|uname|tty|grep)([) ])" |
| 954 | all beginning command ending) | ||
| 953 | (string-append beginning | 955 | (string-append beginning |
| 954 | (search-input-file inputs "bin/tput") | 956 | (search-input-file |
| 955 | " ")))))))) | 957 | inputs |
| 956 | (inputs (list ncurses)) | 958 | (string-append "bin/" command)) |
| 959 | ending)))))))) | ||
| 960 | (inputs (list ncurses | ||
| 961 | coreutils | ||
| 962 | inetutils)) | ||
| 957 | (synopsis "Full-featured prompt for Bash & Zsh") | 963 | (synopsis "Full-featured prompt for Bash & Zsh") |
| 958 | (description | 964 | (description |
| 959 | "Liquidprompt is an adaptive prompt for Bash and Zsh that gives | 965 | "Liquidprompt is an adaptive prompt for Bash and Zsh that gives |
