mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-13 00:20:35 +02:00
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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user