diff options
| -rw-r--r-- | gnu/packages/rust-apps.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 8ef7cdfe80c..52d4cf9ca00 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")) |
