me
/
guix
Archived
1
0
Fork 0

gnu: emacs-org-inline-pdf: Improve package style.

* gnu/packages/emacs-xyz.scm (emacs-org-inline-pdf)[arguments]: Use
G-expressions.  Use SEARCH-INPUT-FILE.
master
Nicolas Goaziou 2023-05-21 14:26:24 +02:00
parent 03de9b587a
commit ea34c09bc2
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 8 additions and 7 deletions

View File

@ -6884,13 +6884,14 @@ allrecipes.com.")
(inputs (inputs
(list pdf2svg)) (list pdf2svg))
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(add-after 'unpack 'patch-exec-paths #~(modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'patch-exec-paths
(let ((pdf2svg (assoc-ref inputs "pdf2svg"))) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "org-inline-pdf.el" (let ((pdf2svg (search-input-file inputs "/bin/pdf2svg")))
(("\"pdf2svg\"") (string-append "\"" pdf2svg "/bin/pdf2svg\""))))))))) (substitute* "org-inline-pdf.el"
(("\"pdf2svg\"") (string-append "\"" pdf2svg "\"")))))))))
(home-page "https://github.com/shg/org-inline-pdf.el") (home-page "https://github.com/shg/org-inline-pdf.el")
(synopsis "Inline PDF previewing for Org") (synopsis "Inline PDF previewing for Org")
(description "This package provides a minor mode that enables (description "This package provides a minor mode that enables