me
/
guix
Archived
1
0
Fork 0

gnu: Add cmark-gfm.

* gnu/packages/markup.scm (cmark-gfm): New variable.
Marius Bakke 2022-01-11 23:24:30 +01:00
parent 68f8dc32d6
commit 1d2df8db2c
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 28 additions and 1 deletions

View File

@ -4,7 +4,7 @@
;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Nikita <nikita@n0.is>
;;; Copyright © 20172021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2020 EuAndreh <eu@euandre.org>
;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
;;; Copyright © 2021 Zhu Zihao <all_but_last@163.com>
@ -302,6 +302,33 @@ for parsing and rendering CommonMark.")
;; licensed. See 'COPYING' in the source distribution for more information.
(license (list license:bsd-2 license:expat license:cc-by-sa4.0))))
(define-public cmark-gfm
(package
(inherit cmark)
(name "cmark-gfm")
(version "0.29.0.gfm.2")
(home-page "https://github.com/github/cmark-gfm")
(source (origin
(method git-fetch)
(uri (git-reference (url home-page) (commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0vz6zs3m22k7jzfj4782lahciwfjlbi4m3qz5crsmssip3rwdy7h"))))
(arguments
'(#:test-target "test"
#:phases (modify-phases %standard-phases
(add-after 'install 'install-config
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
;; XXX: cmark-gfm-core-extensions.h includes this file.
(install-file "src/config.h"
(string-append out "/include"))))))))
(synopsis "GitHub flavored CommonMark")
(description
"This package is a fork of @code{cmark}, with GitHub-specific Markdown
additions.")))
(define-public smu
(package
(name "smu")