unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/7] Add pandoc-citeproc
@ 2016-10-04 13:40 Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 1/7] gnu: ghc-streaming-commons: Remove standard packages from inputs Ricardo Wurmus
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-04 13:40 UTC (permalink / raw)
  To: guix-devel

Hi Guix,

the latest version of r-knitr makes a runtime check to see whether
"pandoc-citeproc" is on the PATH when building vignettes with the Rmarkdown
engine.  As we currently don't offer a package providing "pandoc-citeproc" I
decided to package it.

I decided not to add "ghc-pandoc-citeproc" to the "r-rmarkdown" package's
inputs, because "r-rmarkdown" can be used without it for the most part
(whereas "ghc-pandoc" must always be available).

Also note that the versions of the packages I added are not the latest
versions.  That's for practical reasons as the latest versions would require
wide-ranging updates to many packages in haskell.scm.  I'm working on updates
to all Haskell packages, too, but they are not ready yet and I think this
should not delay the addition of these packages.

~~ Ricardo

Ricardo Wurmus (7):
  gnu: ghc-streaming-commons: Remove standard packages from inputs.
  gnu: Add ghc-hs-bibutils.
  gnu: Add ghc-rfc5051.
  gnu: Add ghc-conduit-extra.
  gnu: Add ghc-xml-types.
  gnu: Add ghc-xml-conduit.
  gnu: Add ghc-pandoc-citeproc.

 gnu/packages/haskell.scm | 200 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 198 insertions(+), 2 deletions(-)

-- 
2.10.0

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/7] gnu: ghc-streaming-commons: Remove standard packages from inputs.
  2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
@ 2016-10-04 13:40 ` Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 2/7] gnu: Add ghc-hs-bibutils Ricardo Wurmus
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-04 13:40 UTC (permalink / raw)
  To: guix-devel

The "directory" and "transformers" modules are part of GHC and should
not be among the inputs to avoid conflicts.

* gnu/packages/haskell.scm (ghc-streaming-commons)[inputs]: Remove
"ghc-directory" and "ghc-transformers".
---
 gnu/packages/haskell.scm | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index cf17c4f..022cfd6 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -1170,12 +1170,10 @@ version 1.3).")
     (build-system haskell-build-system)
     (inputs
      `(("ghc-blaze-builder" ,ghc-blaze-builder)
-       ("ghc-directory" ,ghc-directory)
        ("ghc-network" ,ghc-network)
        ("ghc-random" ,ghc-random)
        ("ghc-stm" ,ghc-stm)
        ("ghc-text" ,ghc-text)
-       ("ghc-transformers" ,ghc-transformers)
        ("ghc-zlib" ,ghc-zlib)))
     (native-inputs
      `(("ghc-quickcheck" ,ghc-quickcheck)
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/7] gnu: Add ghc-hs-bibutils.
  2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 1/7] gnu: ghc-streaming-commons: Remove standard packages from inputs Ricardo Wurmus
@ 2016-10-04 13:40 ` Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 3/7] gnu: Add ghc-rfc5051 Ricardo Wurmus
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-04 13:40 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/haskell.scm (ghc-hs-bibutils): New variable.
---
 gnu/packages/haskell.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 022cfd6..479d8f8 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -6318,6 +6318,29 @@ definition lists, tables, and other features.  A compatibility mode is
 provided for those who need a drop-in replacement for Markdown.pl.")
     (license license:gpl2+)))
 
+(define-public ghc-hs-bibutils
+  (package
+    (name "ghc-hs-bibutils")
+    (version "5.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/hs-bibutils/hs-bibutils-"
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "0pf5lh179rw9jkmw16ss3kiwydlj6zgfk868mjl5s57kx55z7ycm"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-syb" ,ghc-syb)))
+    (home-page "https://hackage.haskell.org/package/hs-bibutils")
+    (synopsis "Haskell bindings to bibutils")
+    (description
+     "This package provides Haskell bindings to @code{bibutils}, a library
+that interconverts between various bibliography formats using a common
+MODS-format XML intermediate.")
+    (license license:gpl2+)))
+
 (define-public ghc-union-find
   (package
     (name "ghc-union-find")
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/7] gnu: Add ghc-rfc5051.
  2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 1/7] gnu: ghc-streaming-commons: Remove standard packages from inputs Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 2/7] gnu: Add ghc-hs-bibutils Ricardo Wurmus
@ 2016-10-04 13:40 ` Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 4/7] gnu: Add ghc-conduit-extra Ricardo Wurmus
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-04 13:40 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/haskell.scm (ghc-rfc5051): New variable.
---
 gnu/packages/haskell.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 479d8f8..5e52dd9 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -6341,6 +6341,29 @@ that interconverts between various bibliography formats using a common
 MODS-format XML intermediate.")
     (license license:gpl2+)))
 
+(define-public ghc-rfc5051
+  (package
+    (name "ghc-rfc5051")
+    (version "0.1.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://hackage.haskell.org/package/rfc5051/"
+                           "rfc5051-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0av4c3qvwbkbzrjrrg601ay9pds7wscqqp2lc2z78mv2lllap3g3"))))
+    (build-system haskell-build-system)
+    (home-page "http://hackage.haskell.org/package/rfc5051")
+    (synopsis "Simple unicode collation as per RFC5051")
+    (description
+     "This library implements @code{unicode-casemap}, the simple, non
+locale-sensitive unicode collation algorithm described in RFC 5051.  Proper
+unicode collation can be done using @code{text-icu}, but that is a big
+dependency that depends on a large C library, and @code{rfc5051} might be
+better for some purposes.")
+    (license license:bsd-3)))
+
 (define-public ghc-union-find
   (package
     (name "ghc-union-find")
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/7] gnu: Add ghc-conduit-extra.
  2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
                   ` (2 preceding siblings ...)
  2016-10-04 13:40 ` [PATCH 3/7] gnu: Add ghc-rfc5051 Ricardo Wurmus
@ 2016-10-04 13:40 ` Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 5/7] gnu: Add ghc-xml-types Ricardo Wurmus
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-04 13:40 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/haskell.scm (ghc-conduit-extra): New variable.
---
 gnu/packages/haskell.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 5e52dd9..4a0c334 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -6364,6 +6364,49 @@ dependency that depends on a large C library, and @code{rfc5051} might be
 better for some purposes.")
     (license license:bsd-3)))
 
+(define-public ghc-conduit-extra
+  (package
+    (name "ghc-conduit-extra")
+    (version "1.1.13.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://hackage.haskell.org/package/"
+                           "conduit-extra/conduit-extra-"
+                           version ".tar.gz"))
+       (sha256
+        (base32
+         "108vsn9dpsfwvar7nssw6wkqy26rxlf3p4ran6swa5xh8l6d5k4z"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-conduit" ,ghc-conduit)
+       ("ghc-exceptions" ,ghc-exceptions)
+       ("ghc-monad-control" ,ghc-monad-control)
+       ("ghc-text" ,ghc-text)
+       ("ghc-transformers-base" ,ghc-transformers-base)
+       ("ghc-async" ,ghc-async)
+       ("ghc-attoparsec" ,ghc-attoparsec)
+       ("ghc-blaze-builder" ,ghc-blaze-builder)
+       ("ghc-network" ,ghc-network)
+       ("ghc-primitive" ,ghc-primitive)
+       ("ghc-resourcet" ,ghc-resourcet)
+       ("ghc-stm" ,ghc-stm)
+       ("ghc-streaming-commons" ,ghc-streaming-commons)
+       ("ghc-hspec" ,ghc-hspec)
+       ("ghc-bytestring-builder" ,ghc-bytestring-builder)
+       ("ghc-quickcheck" ,ghc-quickcheck)))
+    (native-inputs
+     `(("hspec-discover" ,hspec-discover)))
+    (home-page "http://github.com/snoyberg/conduit")
+    (synopsis "Conduit adapters for common libraries")
+    (description
+     "The @code{conduit} package itself maintains relative small dependencies.
+The purpose of this package is to collect commonly used utility functions
+wrapping other library dependencies, without depending on heavier-weight
+dependencies.  The basic idea is that this package should only depend on
+@code{haskell-platform} packages and @code{conduit}.")
+    (license license:expat)))
+
 (define-public ghc-union-find
   (package
     (name "ghc-union-find")
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 5/7] gnu: Add ghc-xml-types.
  2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
                   ` (3 preceding siblings ...)
  2016-10-04 13:40 ` [PATCH 4/7] gnu: Add ghc-conduit-extra Ricardo Wurmus
@ 2016-10-04 13:40 ` Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 6/7] gnu: Add ghc-xml-conduit Ricardo Wurmus
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-04 13:40 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/haskell.scm (ghc-xml-types): New variable.
---
 gnu/packages/haskell.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 4a0c334..bdd8141 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -6407,6 +6407,26 @@ dependencies.  The basic idea is that this package should only depend on
 @code{haskell-platform} packages and @code{conduit}.")
     (license license:expat)))
 
+(define-public ghc-xml-types
+  (package
+    (name "ghc-xml-types")
+    (version "0.3.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://hackage.haskell.org/package/xml-types/"
+                           "xml-types-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1jgqxsa9p2q3h6nymbfmvhldqrqlwrhrzmwadlyc0li50x0d8dwr"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-text" ,ghc-text)))
+    (home-page "https://john-millikin.com/software/haskell-xml/")
+    (synopsis "Basic types for representing XML")
+    (description "This package provides basic types for representing XML
+documents.")
+    (license license:expat)))
+
 (define-public ghc-union-find
   (package
     (name "ghc-union-find")
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 6/7] gnu: Add ghc-xml-conduit.
  2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
                   ` (4 preceding siblings ...)
  2016-10-04 13:40 ` [PATCH 5/7] gnu: Add ghc-xml-types Ricardo Wurmus
@ 2016-10-04 13:40 ` Ricardo Wurmus
  2016-10-04 13:40 ` [PATCH 7/7] gnu: Add ghc-pandoc-citeproc Ricardo Wurmus
  2016-10-06 12:23 ` [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
  7 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-04 13:40 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/haskell.scm (ghc-xml-conduit): New variable.
---
 gnu/packages/haskell.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index bdd8141..e645ad3 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -6427,6 +6427,40 @@ dependencies.  The basic idea is that this package should only depend on
 documents.")
     (license license:expat)))
 
+(define-public ghc-xml-conduit
+  (package
+    (name "ghc-xml-conduit")
+    (version "1.3.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://hackage.haskell.org/package/xml-conduit/"
+                           "xml-conduit-" version ".tar.gz"))
+       (sha256
+        (base32
+         "10yw8jiksw21jgwqjjd1ixflavcblisgkp9qq3ba05vadc35lqr5"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-conduit" ,ghc-conduit)
+       ("ghc-conduit-extra" ,ghc-conduit-extra)
+       ("ghc-resourcet" ,ghc-resourcet)
+       ("ghc-text" ,ghc-text)
+       ("ghc-xml-types" ,ghc-xml-types)
+       ("ghc-attoparsec" ,ghc-attoparsec)
+       ("ghc-blaze-builder" ,ghc-blaze-builder)
+       ("ghc-blaze-markup" ,ghc-blaze-markup)
+       ("ghc-blaze-html" ,ghc-blaze-html)
+       ("ghc-data-default" ,ghc-data-default)
+       ("ghc-monad-control" ,ghc-monad-control)
+       ("ghc-hspec" ,ghc-hspec)
+       ("ghc-hunit" ,ghc-hunit)))
+    (home-page "http://github.com/snoyberg/xml")
+    (synopsis "Utilities for dealing with XML with the conduit package")
+    (description
+     "This package provides pure-Haskell utilities for dealing with XML with
+the @code{conduit} package.")
+    (license license:expat)))
+
 (define-public ghc-union-find
   (package
     (name "ghc-union-find")
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 7/7] gnu: Add ghc-pandoc-citeproc.
  2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
                   ` (5 preceding siblings ...)
  2016-10-04 13:40 ` [PATCH 6/7] gnu: Add ghc-xml-conduit Ricardo Wurmus
@ 2016-10-04 13:40 ` Ricardo Wurmus
  2016-10-06 12:23 ` [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
  7 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-04 13:40 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/haskell.scm (ghc-pandoc-citeproc): New variable.
---
 gnu/packages/haskell.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index e645ad3..52e4bc3 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -6461,6 +6461,61 @@ documents.")
 the @code{conduit} package.")
     (license license:expat)))
 
+(define-public ghc-pandoc-citeproc
+  (package
+    (name "ghc-pandoc-citeproc")
+    (version "0.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://hackage.haskell.org/package/"
+                           "pandoc-citeproc/pandoc-citeproc-"
+                           version ".tar.gz"))
+       (sha256
+        (base32
+         "00mprphppk51ylsrkg817mbk23f9fsfvkwzbys9qqbcjbrxi2r94"))))
+    (build-system haskell-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Tests need to be run after installation.
+         (delete 'check)
+         (add-after 'install 'post-install-check
+           (assoc-ref %standard-phases 'check)))))
+    (inputs
+     `(("ghc-mtl" ,ghc-mtl)
+       ("ghc-pandoc-types" ,ghc-pandoc-types)
+       ("ghc-pandoc" ,ghc-pandoc)
+       ("ghc-tagsoup" ,ghc-tagsoup)
+       ("ghc-aeson" ,ghc-aeson)
+       ("ghc-text" ,ghc-text)
+       ("ghc-vector" ,ghc-vector)
+       ("ghc-xml-conduit" ,ghc-xml-conduit)
+       ("ghc-unordered-containers" ,ghc-unordered-containers)
+       ("ghc-data-default" ,ghc-data-default)
+       ("ghc-setenv" ,ghc-setenv)
+       ("ghc-split" ,ghc-split)
+       ("ghc-yaml" ,ghc-yaml)
+       ("ghc-hs-bibutils" ,ghc-hs-bibutils)
+       ("ghc-rfc5051" ,ghc-rfc5051)
+       ("ghc-syb" ,ghc-syb)
+       ("ghc-parsec" ,ghc-parsec)
+       ("ghc-old-locale" ,ghc-old-locale)
+       ("ghc-aeson-pretty" ,ghc-aeson-pretty)
+       ("ghc-attoparsec" ,ghc-attoparsec)
+       ("ghc-temporary" ,ghc-temporary)))
+    (home-page "https://github.com/jgm/pandoc-citeproc")
+    (synopsis "Library for using pandoc with citeproc")
+    (description
+     "The @code{pandoc-citeproc} library exports functions for using the
+citeproc system with pandoc.  It relies on @code{citeproc-hs}, a library for
+rendering bibliographic reference citations into a variety of styles using a
+macro language called @dfn{Citation Style Language} (CSL).  This package also
+contains an executable @code{pandoc-citeproc}, which works as a pandoc filter,
+and also has a mode for converting bibliographic databases a YAML format
+suitable for inclusion in pandoc YAML metadata.")
+    (license license:bsd-3)))
+
 (define-public ghc-union-find
   (package
     (name "ghc-union-find")
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/7] Add pandoc-citeproc
  2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
                   ` (6 preceding siblings ...)
  2016-10-04 13:40 ` [PATCH 7/7] gnu: Add ghc-pandoc-citeproc Ricardo Wurmus
@ 2016-10-06 12:23 ` Ricardo Wurmus
  7 siblings, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2016-10-06 12:23 UTC (permalink / raw)
  To: guix-devel

>   gnu: ghc-streaming-commons: Remove standard packages from inputs.
>   gnu: Add ghc-hs-bibutils.
>   gnu: Add ghc-rfc5051.
>   gnu: Add ghc-conduit-extra.
>   gnu: Add ghc-xml-types.
>   gnu: Add ghc-xml-conduit.
>   gnu: Add ghc-pandoc-citeproc.

I pushed this to master as eb0ff8a38257d61aee1c2e9430db98f6f8ee7b2c.
(“guix lint” is okay with the package definitions.)

~~ Ricardo

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-10-06 12:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 13:40 [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus
2016-10-04 13:40 ` [PATCH 1/7] gnu: ghc-streaming-commons: Remove standard packages from inputs Ricardo Wurmus
2016-10-04 13:40 ` [PATCH 2/7] gnu: Add ghc-hs-bibutils Ricardo Wurmus
2016-10-04 13:40 ` [PATCH 3/7] gnu: Add ghc-rfc5051 Ricardo Wurmus
2016-10-04 13:40 ` [PATCH 4/7] gnu: Add ghc-conduit-extra Ricardo Wurmus
2016-10-04 13:40 ` [PATCH 5/7] gnu: Add ghc-xml-types Ricardo Wurmus
2016-10-04 13:40 ` [PATCH 6/7] gnu: Add ghc-xml-conduit Ricardo Wurmus
2016-10-04 13:40 ` [PATCH 7/7] gnu: Add ghc-pandoc-citeproc Ricardo Wurmus
2016-10-06 12:23 ` [PATCH 0/7] Add pandoc-citeproc Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).