From cfd4822f28e25ec775b096a318ce43a9fba6d73e Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Thu, 25 Jul 2019 16:44:32 +0200 Subject: Add pandoc packaging --- pandoc.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pandoc.scm (limited to 'pandoc.scm') diff --git a/pandoc.scm b/pandoc.scm new file mode 100644 index 0000000..39a1624 --- /dev/null +++ b/pandoc.scm @@ -0,0 +1,35 @@ +; Configure it for my needs +(define-module (pandoc) + #:use-module (guix packages) + #:use-module (guix build-system gnu) + #:use-module (guix licenses) + #:use-module (guix download)) + +(define-public pandoc + (package + (name "pandoc") + (version "2.7.3") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/jgm/pandoc/releases/download/" + version + "/pandoc-" version "-linux.tar.gz")) + (sha256 + (base32 + "0xfvmfw1yn72iiy52ia7sk6hgrvn62qwkw009l02j0y55va5yxzb")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases + %standard-phases + (replace 'install + (lambda _ + (copy-recursively "." (string-append %output)))) + (delete 'build) + (delete 'configure)))) + (synopsis "A universal document converter") + (description + "If you need to convert files from one markup format into another, +pandoc is your swiss-army knife.") + (home-page "https://pandoc.org") + (license gpl2+))) -- cgit v1.2.3