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
This commit is contained in:
Efraim Flashner 2024-12-28 20:38:17 +02:00
parent 7fcfb3effc
commit 6e4d2d233d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3643,6 +3643,14 @@ consecutive lines and since program start.")
(bin (string-append out "/bin")) (bin (string-append out "/bin"))
(sk (car (find-files "target" "^sk$")))) (sk (car (find-files "target" "^sk$"))))
(install-file sk bin)))) (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 (add-after 'install 'install-extras
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))