diff options
| author | Noé Lopez <noelopez@free.fr> | 2025-05-29 18:13:32 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-06-02 00:26:36 +0200 |
| commit | 0be64e5fc441b1e302fd6b78ee6eed2d04d870b3 (patch) | |
| tree | c1176db4f199d8c4fe91827640f13331c4166abe /gnu | |
| parent | 2b0961b005bb0e9af5bb042e6582f69982a6ec75 (diff) | |
gnu: Add guile-sundown.
Change-Id: I999301346ce823d33cd01efb3b9e2d6a2716e1c7
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/guile-xyz.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index b25061eb074..38d782fb5af 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm | |||
| @@ -3757,6 +3757,49 @@ is no support for parsing block and inline level HTML.") | |||
| 3757 | (name "guile2.0-commonmark") | 3757 | (name "guile2.0-commonmark") |
| 3758 | (inputs (list guile-2.0)))) | 3758 | (inputs (list guile-2.0)))) |
| 3759 | 3759 | ||
| 3760 | (define-public guile-sundown | ||
| 3761 | (package | ||
| 3762 | (name "guile-sundown") | ||
| 3763 | (version "2.1") | ||
| 3764 | (source | ||
| 3765 | (origin | ||
| 3766 | (method git-fetch) | ||
| 3767 | (uri (git-reference | ||
| 3768 | (url "https://codeberg.org/Baleine/guile-sundown-3.git") | ||
| 3769 | (commit version))) | ||
| 3770 | (file-name (git-file-name name version)) | ||
| 3771 | (sha256 | ||
| 3772 | (base32 "0dpc93l01zh9zri31baxr5zsfhv4r1hxfzxflijzisi7zs90j3vl")))) | ||
| 3773 | (build-system gnu-build-system) | ||
| 3774 | (arguments | ||
| 3775 | (list | ||
| 3776 | #:make-flags | ||
| 3777 | #~(list (string-append "PREFIX=" | ||
| 3778 | #$output)) | ||
| 3779 | #:phases | ||
| 3780 | #~(modify-phases %standard-phases | ||
| 3781 | (add-after 'unpack 'set-extension-file-name | ||
| 3782 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 3783 | (substitute* "sundown/markdown.scm" | ||
| 3784 | (("\\(load-extension \"libsundown-guile\"(.*)\\)" _ init) | ||
| 3785 | (format #f | ||
| 3786 | "(load-extension \"~a/lib/guile/3.0/extensions/libsundown-guile\"~a)" | ||
| 3787 | (assoc-ref outputs "out") init))))) | ||
| 3788 | (delete 'configure) | ||
| 3789 | ;; No tests. | ||
| 3790 | (delete 'check)))) | ||
| 3791 | (inputs (list guile-3.0)) | ||
| 3792 | (native-inputs (list guile-3.0 pkg-config)) | ||
| 3793 | (home-page "https://github.com/greghull/sundown-guile") | ||
| 3794 | (synopsis "Markdown library for Guile based on Sundown") | ||
| 3795 | (description | ||
| 3796 | "guile-sundown is a library that renders Markdown as HTML. It | ||
| 3797 | supports many Markdown extensions including tables.") | ||
| 3798 | (license (list (license:non-copyleft | ||
| 3799 | "file://LICENSES/LicenseRef-lesser-curl.txt" | ||
| 3800 | "cURL license without advertising clause.") | ||
| 3801 | license:lgpl2.1+ license:expat license:cc0)))) | ||
| 3802 | |||
| 3760 | (define-public mcron | 3803 | (define-public mcron |
| 3761 | (package | 3804 | (package |
| 3762 | (name "mcron") | 3805 | (name "mcron") |
