mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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:
parent
7fcfb3effc
commit
6e4d2d233d
1 changed files with 8 additions and 0 deletions
|
@ -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"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue