(define-module (xyz euandreh docs) #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (gnu packages markup) #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) #:use-module (guix licenses) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) #:use-module (guix build-system trivial)) ;; Remove once https://issues.guix.gnu.org/58588 is applied (define-public perl-commonmark (package (name "perl-commonmark") (version "0.290000") (source (origin (method url-fetch) (uri (string-append "mirror://cpan/authors/id/N/NW/NWELLNHOF/CommonMark-" version ".tar.gz")) (sha256 (base32 "1pgaqa4f00i9r5z7l9xiya0q51ysq0nhpvgr0f3rza3cxz1v80d5")))) (build-system perl-build-system) (arguments `(#:make-maker-flags ;; facepalm, MakeMaker ignores LIBRARY_PATH! (list (format #f "LIBS=-L~a/lib -lcmark" (assoc-ref %build-inputs "cmark"))))) (inputs (list cmark perl-test-leaktrace perl-devel-checklib perl-module-build)) (home-page "https://metacpan.org/release/CommonMark") (synopsis "Interface to the CommonMark C library") (description "This module is a wrapper around the official CommonMark C library libcmark. It closely follows the original API.") (license perl-license))) (list perl-commonmark)