aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-12-28 20:38:17 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-01-06 12:19:44 +0200
commit6e4d2d233dee7f49619a93dffe5889f682f7495c (patch)
tree3986e21cd7d3a3d82ced8d608bf8d6e56d322f6e
parent7fcfb3effc57173ea5cd94f85205cc51e2834986 (diff)
downloadguix-6e4d2d233dee7f49619a93dffe5889f682f7495c.tar.gz
guix-6e4d2d233dee7f49619a93dffe5889f682f7495c.zip
gnu: skim: Build some manpages and shell completions.
* gnu/packages/rust-apps.scm (skim)[arguments]: Add a phase to build some of the manpages and shell completions. Change-Id: I52a8d0f813e4e2c6e0c7d69d0dec442caf73e53b
-rw-r--r--gnu/packages/rust-apps.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 8ef7cdfe80..52d4cf9ca0 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -3643,6 +3643,14 @@ consecutive lines and since program start.")
(bin (string-append out "/bin"))
(sk (car (find-files "target" "^sk$"))))
(install-file sk bin))))
+ (add-after 'build 'build-extras
+ (lambda _
+ ;; Delete the manpages and completions before rebuilding.
+ (for-each delete-file '("man/man1/sk.1"
+ "shell/completion.bash"
+ "shell/completion.zsh"))
+ (invoke "cargo" "run" "--package" "xtask" "mangen")
+ (invoke "cargo" "run" "--package" "xtask" "compgen")))
(add-after 'install 'install-extras
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))