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

Message ID 20250320100907.20485-50-ngraves@ngraves.fr
State New
Headers
Series [bug#77131,01/51] gnu: Add (gnu packages emacs-build) module. |

Commit Message

Nicolas Graves March 20, 2025, 10:08 a.m. UTC
  * 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(-)
  

Patch

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")