~ruther/guix-local

0be64e5fc441b1e302fd6b78ee6eed2d04d870b3 — Noé Lopez 1 year, 5 months ago 2b0961b
gnu: Add guile-sundown.

Change-Id: I999301346ce823d33cd01efb3b9e2d6a2716e1c7
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 43 insertions(+), 0 deletions(-)

M gnu/packages/guile-xyz.scm
M gnu/packages/guile-xyz.scm => gnu/packages/guile-xyz.scm +43 -0
@@ 3757,6 3757,49 @@ is no support for parsing block and inline level HTML.")
    (name "guile2.0-commonmark")
    (inputs (list guile-2.0))))

(define-public guile-sundown
  (package
    (name "guile-sundown")
    (version "2.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://codeberg.org/Baleine/guile-sundown-3.git")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0dpc93l01zh9zri31baxr5zsfhv4r1hxfzxflijzisi7zs90j3vl"))))
    (build-system gnu-build-system)
    (arguments
     (list
      #:make-flags
      #~(list (string-append "PREFIX="
                             #$output))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'set-extension-file-name
            (lambda* (#:key outputs #:allow-other-keys)
              (substitute* "sundown/markdown.scm"
                (("\\(load-extension \"libsundown-guile\"(.*)\\)" _ init)
                 (format #f
                  "(load-extension \"~a/lib/guile/3.0/extensions/libsundown-guile\"~a)"
                  (assoc-ref outputs "out") init)))))
          (delete 'configure)
          ;; No tests.
          (delete 'check))))
    (inputs (list guile-3.0))
    (native-inputs (list guile-3.0 pkg-config))
    (home-page "https://github.com/greghull/sundown-guile")
    (synopsis "Markdown library for Guile based on Sundown")
    (description
     "guile-sundown is a library that renders Markdown as HTML.  It
supports many Markdown extensions including tables.")
    (license (list (license:non-copyleft
                    "file://LICENSES/LicenseRef-lesser-curl.txt"
                    "cURL license without advertising clause.")
                   license:lgpl2.1+ license:expat license:cc0))))

(define-public mcron
  (package
    (name "mcron")