gnu: emacs-treemacs: Refactor "install-data" phase.
authorOleg Pykhalov <go.wigust@gmail.com>
Wed, 8 Jan 2020 23:27:06 +0000 (02:27 +0300)
committerOleg Pykhalov <go.wigust@gmail.com>
Wed, 8 Jan 2020 23:40:25 +0000 (02:40 +0300)
* gnu/packages/emacs-xyz.scm (emacs-treemacs)[arguments]: Refactor
"install-data" phase.

gnu/packages/emacs-xyz.scm

index ee0aafc..6c9d493 100644 (file)
@@ -17847,13 +17847,13 @@ processes for Emacs")
              #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")