guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 02036f30d2615c02ff245a05b64d2a3c46c4aae5
Author: ulic-youthlic <[email protected]>
AuthorDate: Sun Nov 15 12:13:54 2026 +0800
gnu: Add emacs-idris-mode.
* gnu/packages/emacs-xyz.scm (emacs-idris-mode): New variable.
Signed-off-by: Liliana Marie Prikler <[email protected]>
Merges: guix/guix#12564
---
gnu/packages/emacs-xyz.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 39449886a36..59c93f7e37a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -2035,6 +2035,69 @@ classification have been drawn from public domain
sources, tradition and
antiquity.")
(license license:gpl3+)))
+(define-public emacs-idris-mode
+ (let ((commit "22cc1bf237428b24de5f4f228db747e93a4ae619")
+ (revision "0"))
+ (package
+ (name "emacs-idris-mode")
+ (version (git-version "1.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/idris-hackers/idris-mode")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1rjk1xmx75r32giazj88jq392lakwvpa03a8xdwmifrw5kryrl5h"))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:test-command
+ #~(list "emacs" "-Q" "--batch"
+ "-L" "."
+ "-l" "test/idris-tests.el"
+ "-f" "ert-run-tests-batch-and-exit")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'skip-failing-tests
+ ;; These tests need the 'idris' executable,
+ ;; which is not packaged.
+ (lambda _
+ (define tests
+ '("idris-list-holes"
+ "idris-load-file-idris-hole-show-on-load-disabled"
+ "idris-load-file-idris-hole-show-on-load-enabled"
+ "idris-repl-buffer"
+ "idris-repl-event-hook-function"
+ "idris-semantic-highlighthing"
+ "idris-test-error-buffer"
+ "idris-test-idris-add-clause"
+ "idris-test-idris-quit"
+ "idris-test-idris-quit-logging-enabled"
+ "idris-test-idris-refine"
+ "idris-test-idris-run"
+ "idris-test-idris-start-project"
+ "idris-test-idris-type-at-point"
+ "idris-test-idris-type-search"
+ "idris-test-proof-search"))
+ (substitute* (find-files "test" "\\.el$")
+ (((string-append "\\(ert-deftest ("
+ (string-join tests "|") ") \\(\\).*")
+ all)
+ (string-append all " (skip-unless nil)"))
+ ;; Tests generated by 'idris-ert-command-action'.
+ (("`\\(ert-deftest ,\\(intern .*" all)
+ (string-append all " (skip-unless nil)"))))))))
+ (native-inputs (list emacs-flycheck))
+ (propagated-inputs (list emacs-prop-menu))
+ (home-page "https://github.com/idris-hackers/idris-mode")
+ (synopsis "Idris mode for Emacs")
+ (description
+ "This is an Emacs mode for idris syntax highlighting,
+compiler-supported editing, interactive REPL and more things.")
+ (license license:gpl3+))))
+
(define-public emacs-inspector
(let ((commit "52a64993ac36ed3ed0be51b6a0d54d190edc9c74"))
(package