diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-10-03 15:26:28 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-10-18 11:36:12 +0300 |
commit | bed8878cdcc8040dcc19f98fc5ed199ebe3bef6e (patch) | |
tree | ce91be77b2c0490ff03571f59e0392335b719212 /gnu/packages | |
parent | 1dbfb834baf67c91806b27ae9ec4e29dd25fb098 (diff) | |
download | guix-bed8878cdcc8040dcc19f98fc5ed199ebe3bef6e.tar.gz guix-bed8878cdcc8040dcc19f98fc5ed199ebe3bef6e.zip |
gnu: du-dust: Install manpage, shell completions.
* gnu/packages/admin.scm (du-dust)[arguments]: Add a phase to install
the manpage and shell completions.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/admin.scm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index a3d26f0fe3..a8d4269fbb 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -5938,7 +5938,22 @@ file or files to several hosts.") ("rust-unicode-width" ,rust-unicode-width-0.1) ("rust-winapi-util" ,rust-winapi-util-0.1)) #:cargo-development-inputs (("rust-assert-cmd" ,rust-assert-cmd-2) - ("rust-tempfile" ,rust-tempfile-3)))) + ("rust-tempfile" ,rust-tempfile-3)) + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-extras + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share"))) + (install-file "man-page/dust.1" + (string-append share "/man/man1")) + (mkdir-p (string-append out "/etc/bash_completion.d")) + (copy-file "completions/dust.bash" + (string-append out "/etc/bash_completion.d/dust")) + (install-file "completions/dust.fish" + (string-append share "/fish/vendor_completions.d")) + (install-file "completions/_dust" + (string-append share "/zsh/site-fuctions")))))))) (home-page "https://github.com/bootandy/dust") (synopsis "Graphical disk usage analyzer") (description "This package provides a graphical disk usage analyzer in |