gnu: emacs-lua-mode: Fix build.

* gnu/packages/emacs-xyz.scm (emacs-buttercup-1.25): New variable.
(emacs-lua-mode): Use it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
zimoun 2022-09-21 15:38:35 +02:00 committed by Ludovic Courtès
parent 736bda211b
commit 7ab5c85f4c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -95,7 +95,7 @@
;;; Copyright © 2021 Alexey Abramov <levenson@mmer.org> ;;; Copyright © 2021 Alexey Abramov <levenson@mmer.org>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz> ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;; Copyright © 2021, 2022 Stefan Reichör <stefan@xsteve.at> ;;; Copyright © 2021, 2022 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com> ;;; Copyright © 2021, 2022 Simon Tournier <zimon.toutoune@gmail.com>
;;; Copyright © 2021 Eugene Klimov <lipklim@mailbox.org> ;;; Copyright © 2021 Eugene Klimov <lipklim@mailbox.org>
;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2021 David Dashyan <mail@davie.li> ;;; Copyright © 2021 David Dashyan <mail@davie.li>
@ -12865,7 +12865,7 @@ using package inferred style.")
`(#:tests? #t `(#:tests? #t
#:test-command '("buttercup" "-l" "lua-mode.el"))) #:test-command '("buttercup" "-l" "lua-mode.el")))
(native-inputs (native-inputs
(list emacs-buttercup lua)) (list emacs-buttercup-1.25 lua))
(synopsis "Major mode for lua") (synopsis "Major mode for lua")
(description (description
"This Emacs package provides a mode for @uref{https://www.lua.org/, "This Emacs package provides a mode for @uref{https://www.lua.org/,
@ -24744,6 +24744,23 @@ common set-up and tear-down code, and allows the programmer to \"spy\" on
functions to ensure they are called with the right arguments during testing.") functions to ensure they are called with the right arguments during testing.")
(license license:gpl3+))) (license license:gpl3+)))
;;; Required by emacs-lua-mode
(define emacs-buttercup-1.25
(package
(inherit emacs-buttercup)
(name "emacs-buttercup")
(version "1.25")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jorgenschaefer/emacs-buttercup")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0fsysvsypda6b7azc15bpaprq3bwx4gb6rlq2mj6f8rgwdqc8153"))))))
(define-public emacs-cort (define-public emacs-cort
(package (package
(name "emacs-cort") (name "emacs-cort")