me
/
guix
Archived
1
0
Fork 0

gnu: pandoc: Install bash completions, man page.

* gnu/packages/haskell-xyz.scm (pandoc)[arguments]: Add a phase to
install the bash completions and the man page.

Change-Id: I3e5c18971e06cc3b69ed49a15ab8da11e809e532
master
Efraim Flashner 2023-11-15 16:18:54 +02:00
parent 4c5cac28c3
commit d1b786fe62
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 11 additions and 0 deletions

View File

@ -8589,6 +8589,17 @@ provided for those who need a drop-in replacement for Markdown.pl.")
#:configure-flags #~(list "-fembed_data_files")
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'install-more
(lambda _
(let ((bash (string-append #$output "/etc/bash_completion.d/pandoc"))
(man1 (string-append #$output "/share/man/man1")))
(mkdir-p (dirname bash))
(with-output-to-file bash
(lambda _
(invoke (string-append #$output "/bin/pandoc")
"--bash-completion")))
(mkdir-p man1)
(install-file "man/pandoc.1" man1))))
(add-after 'register 'remove-libraries
(lambda* (#:key outputs #:allow-other-keys)
(delete-file-recursively (string-append (assoc-ref outputs "out") "/lib")))))