Subject: [bug#66566] [PATCH 2/3] gnu: poke: Install emacs modes.

From: Bruno Victal <[email-masked]>
Date: Sun, 15 Oct 2023 18:47:07 +0100

* gnu/packages/engineering.scm (poke)[arguments]<#:configure-flags>: Correctly
set lispdir for emacs.
---
 gnu/packages/engineering.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 46937384e4..112417b30e 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3253,10 +3253,16 @@ (define-public poke
     (inputs (list libgc readline libtextstyle))
     (arguments
      (list
+      #:imported-modules `((guix build emacs-build-system)
+                           (guix build emacs-utils)
+                           ,@%gnu-build-system-modules)
+      #:modules '((guix build gnu-build-system)
+                  ((guix build emacs-build-system) #:prefix emacs:)
+                  (guix build utils))
       #:configure-flags
       #~(list "--disable-static"
-              ;; The emacs files are provided in emacs-poke.
-              "--with-lispdir=/tmp/share/emacs")))
+              (string-append "--with-lispdir="
+                             (emacs:elpa-directory #$output)))))
     (home-page "https://www.gnu.org/software/poke/#documentation")
     (synopsis "Editing of arbitrary binary data")
     (description "GNU poke is an interactive, extensible editor for binary data.
-- 
2.41.0