summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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+)))