diff options
| author | Patrick Norton <patrick.147.norton@gmail.com> | 2026-02-24 17:42:04 -0500 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-03-01 10:14:33 +0100 |
| commit | 403df42a3467be67e399b1f2f78394773177df0a (patch) | |
| tree | 6fd926de4345c9cf3839f1b18552cb9ff1bddc6f /gnu/packages/shellutils.scm | |
| parent | 6d5339916e581036e87806b32115bcec630b1d4c (diff) | |
gnu: zsh-syntax-highlighting: Update to 0.8.0.
* gnu/packages/shellutils.scm (zsh-syntax-highlighting): Update to
0.8.0.
[native-inputs]: Add coreutils and grep.
[arguments]: Use G-Expressions.
<#:phases>: Update 'patch-paths and 'check.
Merges guix/guix!6693
Change-Id: I0fd1936cf55168f2069dd4fd5e63a6ec02ea9b65
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu/packages/shellutils.scm')
| -rw-r--r-- | gnu/packages/shellutils.scm | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 03c9c2b6cd4..6d819ff7555 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm | |||
| @@ -298,7 +298,7 @@ press chosen keys, such as the UP and DOWN arrows, to cycle through matches.") | |||
| 298 | (define-public zsh-syntax-highlighting | 298 | (define-public zsh-syntax-highlighting |
| 299 | (package | 299 | (package |
| 300 | (name "zsh-syntax-highlighting") | 300 | (name "zsh-syntax-highlighting") |
| 301 | (version "0.7.1") | 301 | (version "0.8.0") |
| 302 | (source (origin | 302 | (source (origin |
| 303 | (method git-fetch) | 303 | (method git-fetch) |
| 304 | (uri (git-reference | 304 | (uri (git-reference |
| @@ -307,36 +307,36 @@ press chosen keys, such as the UP and DOWN arrows, to cycle through matches.") | |||
| 307 | (file-name (git-file-name name version)) | 307 | (file-name (git-file-name name version)) |
| 308 | (sha256 | 308 | (sha256 |
| 309 | (base32 | 309 | (base32 |
| 310 | "039g3n59drk818ylcyvkciv8k9mf739cv6v4vis1h9fv9whbcmwl")))) | 310 | "0f482llznpkdg3kv92mjq53djpi4023bdmq06lk1qh05gnp2qg46")))) |
| 311 | (build-system gnu-build-system) | 311 | (build-system gnu-build-system) |
| 312 | (native-inputs | 312 | (native-inputs |
| 313 | (list zsh)) | 313 | (list zsh coreutils grep)) |
| 314 | (arguments | 314 | (arguments |
| 315 | ;; FIXME: Tests fail when running test regexp | 315 | ;; FIXME: Tests have expected failures (easy way to skip just those tests?) |
| 316 | ;; there is no pcre module in the Guix zsh package | 316 | (list |
| 317 | `(#:tests? #f | 317 | #:tests? #f |
| 318 | #:phases | 318 | #:phases |
| 319 | (modify-phases %standard-phases | 319 | #~(modify-phases %standard-phases |
| 320 | (delete 'configure) | 320 | (delete 'configure) |
| 321 | (add-after 'unpack 'patch-paths | 321 | (add-after 'unpack 'patch-paths |
| 322 | (lambda* (#:key outputs #:allow-other-keys) | 322 | (lambda _ |
| 323 | (let ((out (assoc-ref outputs "out"))) | 323 | (substitute* "Makefile" |
| 324 | (substitute* "Makefile" | 324 | (("/usr/local") #$output) |
| 325 | (("/usr/local") out) | 325 | (("share/\\$\\(NAME\\)") "share/zsh/plugins/$(NAME)") |
| 326 | (("share/\\$\\(NAME\\)") "share/zsh/plugins/$(NAME)"))))) | 326 | (("env -i") "env -i PATH=$$PATH")))) |
| 327 | (add-after 'patch-paths 'make-writable | 327 | (add-after 'patch-paths 'make-writable |
| 328 | (lambda _ | 328 | (lambda _ |
| 329 | (for-each make-file-writable | 329 | (for-each make-file-writable |
| 330 | '("docs/highlighters.md" | 330 | '("docs/highlighters.md" |
| 331 | "README.md")))) | 331 | "README.md")))) |
| 332 | (add-before 'build 'add-all-md | 332 | (add-before 'build 'add-all-md |
| 333 | (lambda _ | 333 | (lambda _ |
| 334 | (invoke "make" "all"))) | 334 | (invoke "make" "all"))) |
| 335 | (replace 'check | 335 | (replace 'check |
| 336 | (lambda* (#:key tests? #:allow-other-keys) | 336 | (lambda* (#:key tests? #:allow-other-keys) |
| 337 | (when tests? | 337 | (when tests? |
| 338 | (invoke "make" "test") | 338 | (invoke "make" "test" (string-append "ZSH=" #$zsh "/bin/zsh")) |
| 339 | (invoke "make" "perf"))))))) | 339 | (invoke "make" "perf" (string-append "ZSH=" #$zsh "/bin/zsh")))))))) |
| 340 | (home-page "https://github.com/zsh-users/zsh-syntax-highlighting") | 340 | (home-page "https://github.com/zsh-users/zsh-syntax-highlighting") |
| 341 | (synopsis "Fish shell-like syntax highlighting for Zsh") | 341 | (synopsis "Fish shell-like syntax highlighting for Zsh") |
| 342 | (description | 342 | (description |
