mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: emacs-calibredb: Patch paths to calibre programs.
* gnu/packages/emacs-xyz.scm (emacs-calibredb): Patch paths to calibre programs. [arguments]: Add phase patch-paths. [inputs]: Add calibre. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
37d40e488b
commit
9867bad909
1 changed files with 16 additions and 0 deletions
|
@ -131,6 +131,7 @@ (define-module (gnu packages emacs-xyz)
|
|||
#:use-module (gnu packages databases)
|
||||
#:use-module (gnu packages dictionaries)
|
||||
#:use-module (gnu packages djvu)
|
||||
#:use-module (gnu packages ebook)
|
||||
#:use-module (gnu packages emacs)
|
||||
#:use-module (gnu packages guile)
|
||||
#:use-module (gnu packages gtk)
|
||||
|
@ -22720,6 +22721,21 @@ (define-public emacs-calibredb
|
|||
(sha256
|
||||
(base32 "19gc05k2p1l8wlkrqij9cw6d61hzknd6a9n64kzlpi87cpbav3lv"))))
|
||||
(build-system emacs-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((calibre (assoc-ref inputs "calibre")))
|
||||
(make-file-writable "calibredb-core.el")
|
||||
(emacs-substitute-variables "calibredb-core.el"
|
||||
("calibredb-program"
|
||||
(string-append calibre "/bin/calibredb"))
|
||||
("calibredb-fetch-metadata-program"
|
||||
(string-append calibre "/bin/fetch-ebook-metadata"))))
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("calibre" ,calibre)))
|
||||
(propagated-inputs
|
||||
`(("emacs-dash" ,emacs-dash)
|
||||
("emacs-s" ,emacs-s)
|
||||
|
|
Loading…
Reference in a new issue