aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Leung <leungbk@mailfence.com>2019-09-24 09:59:00 +0200
committerBrian Leung <leungbk@mailfence.com>2019-09-24 10:03:17 +0200
commit61522fd967c6d7cc9ecbc916db538b887e78dd72 (patch)
tree6245937a173fc32d84231902cdc8a5a487f631f3
parent5c1547383f1d8fca1e46a1a3a17e90b61ece915c (diff)
downloadguix-61522fd967c6d7cc9ecbc916db538b887e78dd72.tar
guix-61522fd967c6d7cc9ecbc916db538b887e78dd72.tar.gz
gnu: emacs-rainbow-delimiters: Enable tests.
* gnu/packages/emacs-xyz.scm (emacs-rainbow-delimiters): Enable tests. [source] Use GIT-FETCH and GIT-FILE-NAME.
-rw-r--r--gnu/packages/emacs-xyz.scm17
1 files changed, 11 insertions, 6 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 15fef73d3d..1a639491ef 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -6184,16 +6184,21 @@ completion, interactive development and more.")
(name "emacs-rainbow-delimiters")
(version "2.1.3")
(source (origin
- (method url-fetch)
- (uri (string-append "https://raw.githubusercontent.com/Fanael"
- "/rainbow-delimiters/" version
- "/rainbow-delimiters.el"))
- (file-name (string-append "rainbow-delimiters-" version ".el"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Fanael/rainbow-delimiters.git")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "1b3kampwsjabhcqdp0khgff13wc5jqhy3rbvaa12vnv7qy22l9ck"))))
+ "0vs9pf8lqq5p5qz1770pxgw47ym4xj8axxmwamn66br59mykdhv0"))))
(build-system emacs-build-system)
(home-page "https://github.com/Fanael/rainbow-delimiters")
+ (arguments
+ `(#:tests? #t
+ #:test-command '("emacs" "-Q" "-batch"
+ "-l" "rainbow-delimiters-test.el"
+ "-f" "ert-run-tests-batch-and-exit")))
(synopsis "Highlight brackets according to their depth")
(description
"Rainbow-delimiters is a \"rainbow parentheses\"-like mode for Emacs which