gnu: emacs-treemacs: Refactor "install-data" phase.

* gnu/packages/emacs-xyz.scm (emacs-treemacs)[arguments]: Refactor
"install-data" phase.
This commit is contained in:
Oleg Pykhalov 2020-01-09 02:27:06 +03:00
parent 60a366ec7a
commit 9a1bfd68a9
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -17847,13 +17847,13 @@ (define-public emacs-treemacs
#t))
(add-after 'install 'install-data
(lambda* (#:key outputs #:allow-other-keys)
(let ((images (string-append (assoc-ref outputs "out")
"/share/" ,name "/images")))
(let ((out (assoc-ref outputs "out")))
(with-directory-excursion "../.." ;treemacs root
(copy-recursively "icons/default" images)
(copy-recursively "src/scripts"
(string-append (assoc-ref outputs "out")
"/share/" ,name "/scripts"))
(copy-recursively "icons/default"
(string-append out "/share/" ,name "/images"))
(copy-recursively
"src/scripts"
(string-append out "/share/" ,name "/scripts"))
#t)))))))
(home-page "https://github.com/Alexander-Miller/treemacs")
(synopsis "Emacs tree style file explorer")