Subject: [bug#77131] [PATCH 50/51] gnu: emacs-org-recent-headings: Fix tests.

From: Nicolas Graves <[email-masked]>
Date: Thu, 20 Mar 2025 11:08:58 +0100

* gnu/packages/emacs-xyz.scm (emacs-org-recent-headings)
[source]: Remove makem script.
[arguments]{phases}: Add phase 'inject-makem.
[native-inputs]: Add makem-minimal.
---
 gnu/packages/emacs-xyz.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 648d852d30..96d81cf0dd 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -25316,8 +25316,19 @@ (define-public emacs-org-recent-headings
                (commit commit)))
          (file-name (git-file-name name version))
          (sha256
-          (base32 "1y11rlnhi36lzhc1cagninv6hlcwbvj88xfr0g0xzpbzy7hys021"))))
+          (base32 "1y11rlnhi36lzhc1cagninv6hlcwbvj88xfr0g0xzpbzy7hys021"))
+         ;; Contents of makem package, but no tests.
+         (snippet #~(for-each delete-file '("makem.sh" "Makefile")))))
       (build-system emacs-build-system)
+      (arguments
+       (list #:phases
+             #~(modify-phases %standard-phases
+                 (add-after 'unpack 'inject-makem
+                   (lambda* (#:key inputs #:allow-other-keys)
+                     (symlink (search-input-file inputs "/bin/makem.sh")
+                              "makem.sh"))))))
+      (native-inputs
+       (list makem-minimal))
       (propagated-inputs
        (list emacs-dash emacs-frecency emacs-helm emacs-org emacs-s))
       (home-page "https://github.com/alphapapa/org-recent-headings")
-- 
2.48.1