diff options
| author | Yunqi Shao <me@yqshao.se> | 2026-01-18 19:50:29 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-27 20:38:18 +0000 |
| commit | a39d2337cb92b1d132b48d25c50cc24c2e62886f (patch) | |
| tree | 3237ed00c485551f14ef0d8b832a8dff15ece074 /gnu | |
| parent | 8499852a40b7ead6bb232921a2d8a03da9d42fbf (diff) | |
gnu: liquidprompt: Update to 2.2.1.
* gnu/packages/shellutils.scm (liquidprompt): Update to 2.2.1.
[arguments]<#:install-plan>: Update template locations.
<#:phases>: Add 'install-generated-config phase.
Merges: https://codeberg.org/guix/guix/pulls/5727
Change-Id: I3f5ec199f6f0b04246fc414bd8d2a3c52acc9c5d
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/shellutils.scm | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 5f42058ea7d..03c9c2b6cd4 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm | |||
| @@ -1066,7 +1066,7 @@ source ${GUIX_ENVIRONMENT:-$HOME/.guix-profile}/etc/profile.d/grc.sh | |||
| 1066 | (define-public liquidprompt | 1066 | (define-public liquidprompt |
| 1067 | (package | 1067 | (package |
| 1068 | (name "liquidprompt") | 1068 | (name "liquidprompt") |
| 1069 | (version "2.1.2") | 1069 | (version "2.2.1") |
| 1070 | (home-page "https://github.com/liquidprompt/liquidprompt") | 1070 | (home-page "https://github.com/liquidprompt/liquidprompt") |
| 1071 | (source | 1071 | (source |
| 1072 | (origin | 1072 | (origin |
| @@ -1076,15 +1076,14 @@ source ${GUIX_ENVIRONMENT:-$HOME/.guix-profile}/etc/profile.d/grc.sh | |||
| 1076 | (commit (string-append "v" version)))) | 1076 | (commit (string-append "v" version)))) |
| 1077 | (file-name (git-file-name name version)) | 1077 | (file-name (git-file-name name version)) |
| 1078 | (sha256 | 1078 | (sha256 |
| 1079 | (base32 "0ljlq97mh84d6g6r3abb254vrwrdan5v74b69fpd62d7p9ffnsgf")))) | 1079 | (base32 "1xm3cb2dinn0zqqqya4qz2v8mp8hb6f1mckqvc6npdf8xlcwap35")))) |
| 1080 | (build-system copy-build-system) | 1080 | (build-system copy-build-system) |
| 1081 | (arguments | 1081 | (arguments |
| 1082 | (list | 1082 | (list |
| 1083 | #:install-plan #~'(("liquidpromptrc-dist" "etc/liquidpromptrc") | 1083 | #:install-plan #~'(("example.bashrc" "share/liquidprompt/examples/") |
| 1084 | ("example.bashrc" "share/liquidprompt/examples/") | ||
| 1085 | ("liquid.ps1" "share/liquidprompt/examples/") | ||
| 1086 | ("liquidprompt" "share/liquidprompt/") | 1084 | ("liquidprompt" "share/liquidprompt/") |
| 1087 | ("contrib" "share/liquidprompt/") | 1085 | ("contrib" "share/liquidprompt/") |
| 1086 | ("templates" "share/liquidprompt/") | ||
| 1088 | ("themes" "share/liquidprompt/") | 1087 | ("themes" "share/liquidprompt/") |
| 1089 | ("liquidprompt.plugin.zsh" | 1088 | ("liquidprompt.plugin.zsh" |
| 1090 | "share/zsh/plugins/liquidprompt/") | 1089 | "share/zsh/plugins/liquidprompt/") |
| @@ -1107,7 +1106,16 @@ source ${GUIX_ENVIRONMENT:-$HOME/.guix-profile}/etc/profile.d/grc.sh | |||
| 1107 | (search-input-file | 1106 | (search-input-file |
| 1108 | inputs | 1107 | inputs |
| 1109 | (string-append "bin/" command)) | 1108 | (string-append "bin/" command)) |
| 1110 | ending)))))))) | 1109 | ending))))) |
| 1110 | (add-after 'install 'install-generated-config | ||
| 1111 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 1112 | (let* ((out (assoc-ref outputs "out")) | ||
| 1113 | (etc (string-append out "/etc")) | ||
| 1114 | (config (string-append etc "/liquidpromptrc"))) | ||
| 1115 | (mkdir etc) | ||
| 1116 | (with-output-to-file config | ||
| 1117 | (lambda _ | ||
| 1118 | (invoke "./tools/config-from-doc.sh"))))))))) | ||
| 1111 | (inputs (list ncurses | 1119 | (inputs (list ncurses |
| 1112 | coreutils | 1120 | coreutils |
| 1113 | inetutils)) | 1121 | inetutils)) |
