diff options
author | Brian Leung <leungbk@mailfence.com> | 2019-09-26 08:25:52 +0200 |
---|---|---|
committer | Brian Leung <leungbk@mailfence.com> | 2019-09-26 08:34:43 +0200 |
commit | 06bdb36837c33d7cd0ba34fd9652067df62cb027 (patch) | |
tree | d0d6ca10e526a0586aa1aedd2902f39f6eeca324 | |
parent | d8b352bea7657f039b669846eceb84aedd0f67ed (diff) | |
download | guix-06bdb36837c33d7cd0ba34fd9652067df62cb027.tar guix-06bdb36837c33d7cd0ba34fd9652067df62cb027.tar.gz |
gnu: Add emacs-dash-docs.
* gnu/packages/emacs-xyz.scm (emacs-dash-docs): New variable.
-rw-r--r-- | gnu/packages/emacs-xyz.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index d3991427f2..f43538ecb5 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -17516,6 +17516,53 @@ and searching through @code{Ctags} files.") copied into @code{org-mode} buffers.") (license license:gpl3+)))) +(define-public emacs-dash-docs + (let ((commit "111fd9b97001f1ad887b45e5308a14ddd68ce70a") + (revision "1")) + (package + (name "emacs-dash-docs") + (version (git-version "1.4.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dash-docs-el/dash-docs.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0sckb7z0ylflva212bns7iq9mfnffgjghi0qspsbfwra35zb9xng")))) + (build-system emacs-build-system) + (propagated-inputs + `(("emacs-async" ,emacs-async))) + (native-inputs + `(("emacs-undercover" ,emacs-undercover) + ("emacs-ert-runner" ,emacs-ert-runner))) + (arguments + `(#:tests? #t + #:test-command '("ert-runner") + #:phases + ;; this test requires network access, so remove it + (modify-phases %standard-phases + (add-before 'check 'make-tests-writable + (lambda _ + (make-file-writable "test/dash-docs-test.el") + #t)) + (add-before 'check 'delete-test + (lambda _ + (emacs-batch-edit-file "test/dash-docs-test.el" + `(progn (progn + (goto-char (point-min)) + (re-search-forward "ert-deftest dash-docs-official-docsets-test") + (beginning-of-line) + (kill-sexp)) + (basic-save-buffer))) + #t))))) + (home-page "https://github.com/dash-docs-el/dash-docs") + (synopsis "Offline documentation browser for APIs using Dash docsets") + (description "This package exposes functionality to work with Dash docsets.") + (license license:gpl3+)))) + (define-public emacs-helm-dash (let ((commit "192b862185df661439a06de644791171e899348a") (version "1.3.0") |