diff options
author | David Conner <dconner.pro@gmail.com> | 2023-05-25 06:08:59 -0400 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2023-06-24 17:41:01 +0200 |
commit | fea2c558c26c2f225ea2df20e28ba3655673e188 (patch) | |
tree | 6b139c4a2c1e4cf5e0fbbf4d46eccbd10013b584 /gnu | |
parent | d3f5c35e407d6a3b83b9bb326a5d370280535308 (diff) |
gnu: Add emacs-x509-mode.
* gnu/packages/emacs-xyz.scm (emacs-x509): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/emacs-xyz.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 08d53be8a9..77e4f0b4f4 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -37282,6 +37282,47 @@ categories and highlighting specific modes that many commands use to accomplish different tasks.") (license license:asl2.0)))) +(define-public emacs-x509-mode + (let ((commit "3830cbfdadab4cd68e6f0b6a3a7a4931be8328ea") + (revision "1")) + (package + (name "emacs-x509-mode") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jobbflykt/x509-mode") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ff6kpnh9bzhxx15p18fijjjsqv0mcqwsd5pidyx8v2yzq699k7x")))) + (build-system emacs-build-system) + (arguments + (list + #:tests? #true + #:test-command #~(list "emacs" "-Q" "--batch" + "-l" "x509-mode.el" + "-l" "x509-mode-tests.el" + "-f" "ert-run-tests-batch-and-exit") + #:include #~(cons "\\.txt$" %default-include) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'set-openssl-location + (lambda* (#:key inputs #:allow-other-keys) + (emacs-substitute-variables "x509-mode.el" + ("x509-openssl-cmd" + (search-input-file inputs "/bin/openssl")))))))) + (inputs (list openssl)) + (home-page "https://github.com/jobbflykt/x509-mode") + (synopsis "Major mode for viewing certificates, CRLs, and other +PKI-related files") + (description + "This package provides a major mode for viewing certificates, CRLs, and +other PKI-related files. It uses OpenSSL for viewing PEM and DER encoded PKI +entities.") + (license license:expat)))) + (define-public emacs-totp (let ((commit "a5e059b8475b32bc7f5ddadda248cf84449ed722") ;no releases (revision "0")) |