emacs-xyz: Add emacs-yaml package

This commit is contained in:
Collin J. Doering 2021-10-13 12:11:44 -04:00
parent f8004fc1d2
commit fd313c8f54
Signed by: rekahsoft
GPG Key ID: 7B4DEB93212B3022
1 changed files with 34 additions and 0 deletions

View File

@ -867,3 +867,37 @@ dashboard!")
(description
"Displays icons for all buffers in ibuffer")
(license license:gpl3+)))
;; TODO: Upstream candidate
(define-public emacs-yaml
(package
(name "emacs-yaml")
(version "0.3.4")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/zkry/yaml.el.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"13fjxrr7iyfagbm21p5is5jw1zv56ns2mnac145v8lqli6mrr5gx"))))
(build-system emacs-build-system)
(home-page "https://github.com/zkry/yaml.el")
(synopsis "YAML parser for Elisp")
(description
"yaml.el contains the code for parsing YAML natively in Elisp with
no dependencies. The main function to parse YAML provided is
`yaml-parse-string'. `yaml-encode' is also provided to encode a
Lisp object to YAML. The following are some examples of its usage:
(yaml-parse-string \"key1: value1\
key2: value2\")
(yaml-parse-string \"key1: value1\
key2: value2\" :object-type 'alist)
(yaml-parse-string \"numbers: [1, 2, 3]\" :sequence-type 'list)
(yaml-encode '((count . 3) (value . 10) (items (\"ruby\" \"diamond\"))))
")
(license license:gpl3)))