diff mbox series

[bug#57298,2/5] gnu: Add ocaml-pprint.

Message ID 20220819152432.26135-2-pukkamustard@posteo.net
State Accepted
Headers show
Series gnu: Add ocaml-digestif. (and dependencies) | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

pukkamustard Aug. 19, 2022, 3:24 p.m. UTC
* gnu/packages/ocaml.scm (ocaml-pprint): New variable.
---
 gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

Comments

Julien Lepiller Aug. 20, 2022, 12:03 p.m. UTC | #1
Hi!

guix lint complains this package is not the latest version. Indeed,
it's 2 years old when there are newer versions. The latest version
seems to work fine. Why do you need this version precisely?

Le Fri, 19 Aug 2022 15:24:29 +0000,
pukkamustard <pukkamustard@posteo.net> a écrit :

> * gnu/packages/ocaml.scm (ocaml-pprint): New variable.
> ---
>  gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
> index 14550d1232..dc56fb3ba3 100644
> --- a/gnu/packages/ocaml.scm
> +++ b/gnu/packages/ocaml.scm
> @@ -8579,6 +8579,31 @@ (define-public ocaml-afl-persistent
>  repeated forking and is much faster.")
>      (license license:expat)))
>  
> +(define-public ocaml-pprint
> +  (package
> +    (name "ocaml-pprint")
> +    (version "20200410")
> +    (home-page "https://github.com/fpottier/pprint")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url home-page)
> +             (commit version)))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32
> +         "16xc0rd4yj1y9rrs9fbhidd08icy4pc1plx48hp0xs6vnkh1wxjm"))))
> +    (build-system dune-build-system)
> +    (synopsis "OCaml pretty-printing combinator library and rendering
> +engine")
> +    (description "This OCaml library offers a set of combinators for
> building +so-called documents as well as an efficient engine for
> converting documents to +a textual, fixed-width format.  The engine
> takes care of indentation and line +breaks, while respecting the
> constraints imposed by the structure of the +document and by the text
> width.")
> +    (license license:lgpl2.0)))
> +
>  (define-public ocaml-bibtex2html
>    (package
>      (name "ocaml-bibtex2html")
pukkamustard Aug. 22, 2022, 9:43 a.m. UTC | #2
Hi!

Julien Lepiller <julien@lepiller.eu> writes:

> guix lint complains this package is not the latest version. Indeed,
> it's 2 years old when there are newer versions. The latest version
> seems to work fine. Why do you need this version precisely?

Absolutely right. Only reason for me to include the old version was
ignorance.

Updated to most recent version (20220103) in V2.
diff mbox series

Patch

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 14550d1232..dc56fb3ba3 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8579,6 +8579,31 @@  (define-public ocaml-afl-persistent
 repeated forking and is much faster.")
     (license license:expat)))
 
+(define-public ocaml-pprint
+  (package
+    (name "ocaml-pprint")
+    (version "20200410")
+    (home-page "https://github.com/fpottier/pprint")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "16xc0rd4yj1y9rrs9fbhidd08icy4pc1plx48hp0xs6vnkh1wxjm"))))
+    (build-system dune-build-system)
+    (synopsis "OCaml pretty-printing combinator library and rendering
+engine")
+    (description "This OCaml library offers a set of combinators for building
+so-called documents as well as an efficient engine for converting documents to
+a textual, fixed-width format.  The engine takes care of indentation and line
+breaks, while respecting the constraints imposed by the structure of the
+document and by the text width.")
+    (license license:lgpl2.0)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")