diff options
| author | Z572 <873216071@qq.com> | 2021-09-06 18:56:18 +0800 |
|---|---|---|
| committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-09-13 22:27:24 +0200 |
| commit | 30a31004b1d86c9b4a0c20a435202ca53e991972 (patch) | |
| tree | 4a93023e96d95dd94902120953cb0feca54c2d4b /gnu | |
| parent | 1ada5e28ba695825d6287b6ac6a69f016777eb40 (diff) | |
gnu: emacs-telega: Install etc directory to better path.
* gnu/packages/emacs-xyz.scm (emacs-telega)[arguments]: Add the #:include
argument. Remove install-share-files phase.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/emacs-xyz.scm | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 9bb04705165..9af60a8c5f7 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm | |||
| @@ -26718,6 +26718,7 @@ service, and connect it with Emacs via inter-process communication.") | |||
| 26718 | emacs-minimal | 26718 | emacs-minimal |
| 26719 | ;; Require wide-int support for 32-bit platform. | 26719 | ;; Require wide-int support for 32-bit platform. |
| 26720 | emacs-wide-int) | 26720 | emacs-wide-int) |
| 26721 | #:include (cons "^etc\\/" %default-include) | ||
| 26721 | #:phases | 26722 | #:phases |
| 26722 | (modify-phases %standard-phases | 26723 | (modify-phases %standard-phases |
| 26723 | (add-after 'unpack 'patch-sources | 26724 | (add-after 'unpack 'patch-sources |
| @@ -26745,24 +26746,8 @@ service, and connect it with Emacs via inter-process communication.") | |||
| 26745 | "/bin/telega-server"))) | 26746 | "/bin/telega-server"))) |
| 26746 | (substitute* "telega-util.el" | 26747 | (substitute* "telega-util.el" |
| 26747 | (("@TELEGA_SHARE@") | 26748 | (("@TELEGA_SHARE@") |
| 26748 | (string-append (assoc-ref outputs "out") | 26749 | (string-append (elpa-directory (assoc-ref outputs "out")) |
| 26749 | "/share/emacs-telega"))))) | 26750 | "/etc")))))))) |
| 26750 | (add-after 'install 'install-share-files | ||
| 26751 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 26752 | (define install-plan | ||
| 26753 | '("langs" "sounds" "emojis.alist" | ||
| 26754 | "verified.svg" "telega-logo.svg")) | ||
| 26755 | |||
| 26756 | (define prefix (string-append (assoc-ref outputs "out") | ||
| 26757 | "/share/emacs-telega")) | ||
| 26758 | (with-directory-excursion "etc" | ||
| 26759 | (for-each (lambda (file) | ||
| 26760 | (if (file-is-directory? file) | ||
| 26761 | (let ((dest (string-append prefix "/" file))) | ||
| 26762 | (copy-recursively file dest)) | ||
| 26763 | (install-file file prefix))) | ||
| 26764 | install-plan)) | ||
| 26765 | #t))))) | ||
| 26766 | (inputs | 26751 | (inputs |
| 26767 | `(("emacs-telega-server" ,emacs-telega-server) | 26752 | `(("emacs-telega-server" ,emacs-telega-server) |
| 26768 | ("ffmpeg" ,ffmpeg))) | 26753 | ("ffmpeg" ,ffmpeg))) |
