summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-07-25 16:44:32 +0200
committerEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-07-25 16:44:32 +0200
commitcfd4822f28e25ec775b096a318ce43a9fba6d73e (patch)
tree9f62ee32c05381610eec91b0b61a149dda141127
parent2f745d5f32537c9d5f7bec72a3abdc62dd0eb2d6 (diff)
Add pandoc packaging
-rw-r--r--pandoc.scm35
1 files changed, 35 insertions, 0 deletions
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+)))