Subject: [bug#78315] [PATCH 51/53] gnu: emacs-zmq: Use elpa-directory.

From: Nicolas Graves <[email-masked]>
Date: Thu, 8 May 2025 14:50:53 +0200

* gnu/packages/emacs-xyz.scm (emacs-zmq)[arguments]<phases>: Use
elpa-directory.
---
 gnu/packages/emacs-xyz.scm | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6f2030c05f..849cf500cd 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -10779,12 +10779,8 @@ (define-public emacs-zmq
                 (("zmq-mesage-more-p") "zmq-message-more-p"))
               (invoke "make")))
           (add-after 'install 'install-shared-object
-            (lambda* (#:key inputs outputs #:allow-other-keys)
-              (let* ((out (assoc-ref outputs "out"))
-                     (site-lisp (string-append out "/share/emacs/site-lisp"))
-                     (libdir (string-append site-lisp "/zmq-" #$version)))
-                (copy-file "emacs-zmq.so"
-                           (string-append libdir "/emacs-zmq.so"))))))))
+            (lambda _
+              (install-file "emacs-zmq.so" (elpa-directory #$output)))))))
     (native-inputs
      (list autoconf automake libtool pkg-config))
     (inputs
-- 
2.49.0