all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#57298] [PATCH 0/5] gnu: Add ocaml-digestif. (and dependencies)
@ 2022-08-19 15:21 pukkamustard
  2022-08-19 15:24 ` [bug#57298] [PATCH 1/5] gnu: Add ocaml-afl-persistent pukkamustard
  2022-08-22  9:54 ` [bug#57298] [PATCH v2 1/5] gnu: Add ocaml-afl-persistent pukkamustard
  0 siblings, 2 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-19 15:21 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard, Xinglu Chen, julien

Hello Guix,

This adds ocaml-digestif. An OCaml library that implements some hashing
functions.

Some commits have been recycled from https://issues.guix.gnu.org/49867.

Best regards,
pukkamustard

Xinglu Chen (1):
  gnu: Add ocaml-afl-persistent.

pukkamustard (4):
  gnu: Add ocaml-pprint.
  gnu: Add ocaml-crowbar.
  gnu: Add ocaml-eqaf.
  gnu: Add ocaml-digestif.

 gnu/packages/ocaml.scm | 151 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 151 insertions(+)

-- 
2.37.1





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

* [bug#57298] [PATCH 1/5] gnu: Add ocaml-afl-persistent.
  2022-08-19 15:21 [bug#57298] [PATCH 0/5] gnu: Add ocaml-digestif. (and dependencies) pukkamustard
@ 2022-08-19 15:24 ` pukkamustard
  2022-08-19 15:24   ` [bug#57298] [PATCH 2/5] gnu: Add ocaml-pprint pukkamustard
                     ` (3 more replies)
  2022-08-22  9:54 ` [bug#57298] [PATCH v2 1/5] gnu: Add ocaml-afl-persistent pukkamustard
  1 sibling, 4 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-19 15:24 UTC (permalink / raw)
  To: 57298; +Cc: Xinglu Chen

From: Xinglu Chen <public@yoctocell.xyz>

* gnu/packages/ocaml.scm (ocaml-afl-persistent): New variable.
---
 gnu/packages/ocaml.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 3f123219f7..14550d1232 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8545,6 +8545,40 @@ (define-public js-of-ocaml
 browsers and Node.js.")
     (license license:lgpl2.1+)))
 
+(define-public ocaml-afl-persistent
+  (package
+    (name "ocaml-afl-persistent")
+    (version "1.3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/stedolan/ocaml-afl-persistent")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+           "06yyds2vcwlfr2nd3gvyrazlijjcrd1abnvkfpkaadgwdw3qam1i"))))
+    (build-system ocaml-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'build
+           (lambda _
+             (invoke "./build.sh")))
+         ;; XXX: The tests are already run in the build.sh script.
+         (delete 'check))))
+    (native-inputs
+     `(("opam" ,opam)))
+    (home-page "https://github.com/stedolan/ocaml-afl-persistent")
+    (synopsis "Use afl-fuzz in persistent mode")
+    (description
+      "afl-fuzz normally works by repeatedly forking the program being tested.
+Using this package, you can run afl-fuzz in ``persistent mode'', which avoids
+repeated forking and is much faster.")
+    (license license:expat)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")
-- 
2.37.1





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

* [bug#57298] [PATCH 2/5] gnu: Add ocaml-pprint.
  2022-08-19 15:24 ` [bug#57298] [PATCH 1/5] gnu: Add ocaml-afl-persistent pukkamustard
@ 2022-08-19 15:24   ` pukkamustard
  2022-08-20 12:03     ` Julien Lepiller
  2022-08-19 15:24   ` [bug#57298] [PATCH 3/5] gnu: Add ocaml-crowbar pukkamustard
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 16+ messages in thread
From: pukkamustard @ 2022-08-19 15:24 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard

* 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")
-- 
2.37.1





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

* [bug#57298] [PATCH 3/5] gnu: Add ocaml-crowbar.
  2022-08-19 15:24 ` [bug#57298] [PATCH 1/5] gnu: Add ocaml-afl-persistent pukkamustard
  2022-08-19 15:24   ` [bug#57298] [PATCH 2/5] gnu: Add ocaml-pprint pukkamustard
@ 2022-08-19 15:24   ` pukkamustard
  2022-08-20 12:05     ` Julien Lepiller
  2022-08-19 15:24   ` [bug#57298] [PATCH 4/5] gnu: Add ocaml-eqaf pukkamustard
  2022-08-19 15:24   ` [bug#57298] [PATCH 5/5] gnu: Add ocaml-digestif pukkamustard
  3 siblings, 1 reply; 16+ messages in thread
From: pukkamustard @ 2022-08-19 15:24 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard

* gnu/packages/ocaml.scm (ocaml-crowbar): New variable.
---
 gnu/packages/ocaml.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index dc56fb3ba3..506153785a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8604,6 +8604,42 @@ (define-public ocaml-pprint
 document and by the text width.")
     (license license:lgpl2.0)))
 
+(define-public ocaml-crowbar
+  (package
+    (name "ocaml-crowbar")
+    (version "0.2.1")
+    (home-page "https://github.com/stedolan/crowbar")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "11f3kiw58g8njx15akx16xcplzvzdw9y6c4jpyfxylkxws4g0f6j"))))
+    (build-system dune-build-system)
+    (arguments
+     ;; Tests require ocaml-xmldiff which requires OCaml 4.12.0
+     `(#:tests? #f))
+    (propagated-inputs
+     (list ocaml-ocplib-endian
+           ocaml-cmdliner
+           ocaml-afl-persistent))
+    (native-inputs
+     (list ocaml-calendar
+           ocaml-fpath
+           ocaml-uucp
+           ocaml-uunf
+           ocaml-uutf
+           ocaml-pprint))
+    (synopsis "Ocaml library for tests, let a fuzzer find failing cases")
+    (description "Crowbar is a library for testing code, combining
+QuickCheck-style property-based testing and the magical bug-finding powers of
+@uref{http://lcamtuf.coredump.cx/afl/, afl-fuzz}.")
+    (license license:expat)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")
-- 
2.37.1





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

* [bug#57298] [PATCH 4/5] gnu: Add ocaml-eqaf.
  2022-08-19 15:24 ` [bug#57298] [PATCH 1/5] gnu: Add ocaml-afl-persistent pukkamustard
  2022-08-19 15:24   ` [bug#57298] [PATCH 2/5] gnu: Add ocaml-pprint pukkamustard
  2022-08-19 15:24   ` [bug#57298] [PATCH 3/5] gnu: Add ocaml-crowbar pukkamustard
@ 2022-08-19 15:24   ` pukkamustard
  2022-08-19 15:24   ` [bug#57298] [PATCH 5/5] gnu: Add ocaml-digestif pukkamustard
  3 siblings, 0 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-19 15:24 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard

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

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 506153785a..f078241c10 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8640,6 +8640,29 @@ (define-public ocaml-crowbar
 @uref{http://lcamtuf.coredump.cx/afl/, afl-fuzz}.")
     (license license:expat)))
 
+(define-public ocaml-eqaf
+  (package
+    (name "ocaml-eqaf")
+    (version "0.9")
+    (home-page "https://github.com/mirage/eqaf")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "16ics56wiqyng70dy2hqikicm8ag1mv5w1h7hkiwvydw1x2j2rsl"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-cstruct))
+    (native-inputs (list ocaml-alcotest ocaml-crowbar))
+    (synopsis "OCaml library for constant-time equal function on string")
+    (description "This OCaml library provides an equal function on string in
+constant-time to avoid timing-attack with crypto stuff.")
+    (license license:expat)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")
-- 
2.37.1





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

* [bug#57298] [PATCH 5/5] gnu: Add ocaml-digestif.
  2022-08-19 15:24 ` [bug#57298] [PATCH 1/5] gnu: Add ocaml-afl-persistent pukkamustard
                     ` (2 preceding siblings ...)
  2022-08-19 15:24   ` [bug#57298] [PATCH 4/5] gnu: Add ocaml-eqaf pukkamustard
@ 2022-08-19 15:24   ` pukkamustard
  3 siblings, 0 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-19 15:24 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard

* gnu/packages/ocaml.scm (ocaml-digestif): New variable.
---
 gnu/packages/ocaml.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index f078241c10..6dde939ad7 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8663,6 +8663,39 @@ (define-public ocaml-eqaf
 constant-time to avoid timing-attack with crypto stuff.")
     (license license:expat)))
 
+(define-public ocaml-digestif
+  (package
+    (name "ocaml-digestif")
+    (version "1.1.2")
+    (home-page "https://github.com/mirage/digestif")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0mc233d63y04jznsn3bxncgv7fkvyngbv6hcka412iq0y3x4qsmq"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-eqaf))
+    (native-inputs
+     (list pkg-config
+           ocaml-fmt
+           ocaml-alcotest
+           ocaml-bos
+           ocaml-astring
+           ocaml-fpath
+           ocaml-rresult
+           ocaml-findlib))
+    (synopsis "Simple hash algorithms in OCaml")
+    (description
+     "Digestif is an OCaml library that provides implementations of hash
+algorithms.  Implemented hash algorithms include MD5, SHA1, SHA224, SHA256,
+SHA384, SHA512, Blake2b, Blake2s and RIPEMD160.")
+    (license license:expat)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")
-- 
2.37.1





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

* [bug#57298] [PATCH 2/5] gnu: Add ocaml-pprint.
  2022-08-19 15:24   ` [bug#57298] [PATCH 2/5] gnu: Add ocaml-pprint pukkamustard
@ 2022-08-20 12:03     ` Julien Lepiller
  2022-08-22  9:43       ` pukkamustard
  0 siblings, 1 reply; 16+ messages in thread
From: Julien Lepiller @ 2022-08-20 12:03 UTC (permalink / raw)
  To: pukkamustard; +Cc: 57298

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")





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

* [bug#57298] [PATCH 3/5] gnu: Add ocaml-crowbar.
  2022-08-19 15:24   ` [bug#57298] [PATCH 3/5] gnu: Add ocaml-crowbar pukkamustard
@ 2022-08-20 12:05     ` Julien Lepiller
  2022-08-22  9:45       ` pukkamustard
  0 siblings, 1 reply; 16+ messages in thread
From: Julien Lepiller @ 2022-08-20 12:05 UTC (permalink / raw)
  To: pukkamustard; +Cc: 57298

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

> +    (build-system dune-build-system)
> +    (arguments
> +     ;; Tests require ocaml-xmldiff which requires OCaml 4.12.0
> +     `(#:tests? #f))

That doesn't seem to be the case, at least from opam, the constraint is
ocaml >= 4.12. We have 4.14. Could you try adding xmldiff and enabling
tests?

> +    (propagated-inputs
> +     (list ocaml-ocplib-endian
> +           ocaml-cmdliner
> +           ocaml-afl-persistent))
> +    (native-inputs
> +     (list ocaml-calendar
> +           ocaml-fpath
> +           ocaml-uucp
> +           ocaml-uunf
> +           ocaml-uutf
> +           ocaml-pprint))
> +    (synopsis "Ocaml library for tests, let a fuzzer find failing
> cases")
> +    (description "Crowbar is a library for testing code, combining
> +QuickCheck-style property-based testing and the magical bug-finding
> powers of +@uref{http://lcamtuf.coredump.cx/afl/, afl-fuzz}.")
> +    (license license:expat)))
> +
>  (define-public ocaml-bibtex2html
>    (package
>      (name "ocaml-bibtex2html")





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

* [bug#57298] [PATCH 2/5] gnu: Add ocaml-pprint.
  2022-08-20 12:03     ` Julien Lepiller
@ 2022-08-22  9:43       ` pukkamustard
  0 siblings, 0 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-22  9:43 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 57298


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.




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

* [bug#57298] [PATCH 3/5] gnu: Add ocaml-crowbar.
  2022-08-20 12:05     ` Julien Lepiller
@ 2022-08-22  9:45       ` pukkamustard
  0 siblings, 0 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-22  9:45 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 57298


Julien Lepiller <julien@lepiller.eu> writes:

> Le Fri, 19 Aug 2022 15:24:30 +0000,
> pukkamustard <pukkamustard@posteo.net> a écrit :
>
>> +    (build-system dune-build-system)
>> +    (arguments
>> +     ;; Tests require ocaml-xmldiff which requires OCaml 4.12.0
>> +     `(#:tests? #f))
>
> That doesn't seem to be the case, at least from opam, the constraint is
> ocaml >= 4.12. We have 4.14. Could you try adding xmldiff and enabling
> tests?

Again, this seems to have been an artifact of porting the package
definitions from an old patch series. Sorry for the sloppyness.

ocaml-crowbar no longer has tests that rely on xmldiff. I've enabled the
tests and it just works.

A general note on another OCaml dependency: ocaml-calendar seems to be
unmaintained
(https://discuss.ocaml.org/t/calendarlib-looking-for-a-new-maintainer/3965)
and some fixes are included in an unreleased Git branch
(https://github.com/ocaml-community/calendar/tree/3.x). No action
required from Guix side at the moment, just worth keeping in mind.

Thanks for your review! Will send in V2 shortly.

-pukkamustard

>
>> +    (propagated-inputs
>> +     (list ocaml-ocplib-endian
>> +           ocaml-cmdliner
>> +           ocaml-afl-persistent))
>> +    (native-inputs
>> +     (list ocaml-calendar
>> +           ocaml-fpath
>> +           ocaml-uucp
>> +           ocaml-uunf
>> +           ocaml-uutf
>> +           ocaml-pprint))
>> +    (synopsis "Ocaml library for tests, let a fuzzer find failing
>> cases")
>> +    (description "Crowbar is a library for testing code, combining
>> +QuickCheck-style property-based testing and the magical bug-finding
>> powers of +@uref{http://lcamtuf.coredump.cx/afl/, afl-fuzz}.")
>> +    (license license:expat)))
>> +
>>  (define-public ocaml-bibtex2html
>>    (package
>>      (name "ocaml-bibtex2html")





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

* [bug#57298] [PATCH v2 1/5] gnu: Add ocaml-afl-persistent.
  2022-08-19 15:21 [bug#57298] [PATCH 0/5] gnu: Add ocaml-digestif. (and dependencies) pukkamustard
  2022-08-19 15:24 ` [bug#57298] [PATCH 1/5] gnu: Add ocaml-afl-persistent pukkamustard
@ 2022-08-22  9:54 ` pukkamustard
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 2/5] gnu: Add ocaml-pprint pukkamustard
                     ` (3 more replies)
  1 sibling, 4 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-22  9:54 UTC (permalink / raw)
  To: 57298; +Cc: Xinglu Chen

From: Xinglu Chen <public@yoctocell.xyz>

* gnu/packages/ocaml.scm (ocaml-afl-persistent): New variable.
---
 gnu/packages/ocaml.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 3f123219f7..14550d1232 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8545,6 +8545,40 @@ (define-public js-of-ocaml
 browsers and Node.js.")
     (license license:lgpl2.1+)))
 
+(define-public ocaml-afl-persistent
+  (package
+    (name "ocaml-afl-persistent")
+    (version "1.3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/stedolan/ocaml-afl-persistent")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+           "06yyds2vcwlfr2nd3gvyrazlijjcrd1abnvkfpkaadgwdw3qam1i"))))
+    (build-system ocaml-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'build
+           (lambda _
+             (invoke "./build.sh")))
+         ;; XXX: The tests are already run in the build.sh script.
+         (delete 'check))))
+    (native-inputs
+     `(("opam" ,opam)))
+    (home-page "https://github.com/stedolan/ocaml-afl-persistent")
+    (synopsis "Use afl-fuzz in persistent mode")
+    (description
+      "afl-fuzz normally works by repeatedly forking the program being tested.
+Using this package, you can run afl-fuzz in ``persistent mode'', which avoids
+repeated forking and is much faster.")
+    (license license:expat)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")
-- 
2.37.1





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

* [bug#57298] [PATCH v2 2/5] gnu: Add ocaml-pprint.
  2022-08-22  9:54 ` [bug#57298] [PATCH v2 1/5] gnu: Add ocaml-afl-persistent pukkamustard
@ 2022-08-22  9:54   ` pukkamustard
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 3/5] gnu: Add ocaml-crowbar pukkamustard
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-22  9:54 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard

* 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..aaa596ae20 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 "20220103")
+    (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
+         "09y6nwnjldifm47406q1r9987njlk77g4ifqg6qs54dckhr64vax"))))
+    (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")
-- 
2.37.1





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

* [bug#57298] [PATCH v2 3/5] gnu: Add ocaml-crowbar.
  2022-08-22  9:54 ` [bug#57298] [PATCH v2 1/5] gnu: Add ocaml-afl-persistent pukkamustard
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 2/5] gnu: Add ocaml-pprint pukkamustard
@ 2022-08-22  9:54   ` pukkamustard
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 4/5] gnu: Add ocaml-eqaf pukkamustard
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 5/5] gnu: Add ocaml-digestif pukkamustard
  3 siblings, 0 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-22  9:54 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard

* gnu/packages/ocaml.scm (ocaml-crowbar): New variable.
---
 gnu/packages/ocaml.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index aaa596ae20..2c928f5fcc 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8604,6 +8604,41 @@ (define-public ocaml-pprint
 document and by the text width.")
     (license license:lgpl2.0)))
 
+(define-public ocaml-crowbar
+  (package
+    (name "ocaml-crowbar")
+    (version "0.2.1")
+    (home-page "https://github.com/stedolan/crowbar")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "11f3kiw58g8njx15akx16xcplzvzdw9y6c4jpyfxylkxws4g0f6j"))))
+    (build-system dune-build-system)
+    (arguments
+     `(#:test-target "."))
+    (propagated-inputs
+     (list ocaml-ocplib-endian
+           ocaml-cmdliner
+           ocaml-afl-persistent))
+    (native-inputs
+     (list ocaml-calendar
+           ocaml-fpath
+           ocaml-uucp
+           ocaml-uunf
+           ocaml-uutf
+           ocaml-pprint))
+    (synopsis "Ocaml library for tests, let a fuzzer find failing cases")
+    (description "Crowbar is a library for testing code, combining
+QuickCheck-style property-based testing and the magical bug-finding powers of
+@uref{http://lcamtuf.coredump.cx/afl/, afl-fuzz}.")
+    (license license:expat)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")
-- 
2.37.1





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

* [bug#57298] [PATCH v2 4/5] gnu: Add ocaml-eqaf.
  2022-08-22  9:54 ` [bug#57298] [PATCH v2 1/5] gnu: Add ocaml-afl-persistent pukkamustard
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 2/5] gnu: Add ocaml-pprint pukkamustard
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 3/5] gnu: Add ocaml-crowbar pukkamustard
@ 2022-08-22  9:54   ` pukkamustard
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 5/5] gnu: Add ocaml-digestif pukkamustard
  3 siblings, 0 replies; 16+ messages in thread
From: pukkamustard @ 2022-08-22  9:54 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard

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

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 2c928f5fcc..68b9bdac97 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8639,6 +8639,29 @@ (define-public ocaml-crowbar
 @uref{http://lcamtuf.coredump.cx/afl/, afl-fuzz}.")
     (license license:expat)))
 
+(define-public ocaml-eqaf
+  (package
+    (name "ocaml-eqaf")
+    (version "0.9")
+    (home-page "https://github.com/mirage/eqaf")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "16ics56wiqyng70dy2hqikicm8ag1mv5w1h7hkiwvydw1x2j2rsl"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-cstruct))
+    (native-inputs (list ocaml-alcotest ocaml-crowbar))
+    (synopsis "OCaml library for constant-time equal function on string")
+    (description "This OCaml library provides an equal function on string in
+constant-time to avoid timing-attack with crypto stuff.")
+    (license license:expat)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")
-- 
2.37.1





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

* [bug#57298] [PATCH v2 5/5] gnu: Add ocaml-digestif.
  2022-08-22  9:54 ` [bug#57298] [PATCH v2 1/5] gnu: Add ocaml-afl-persistent pukkamustard
                     ` (2 preceding siblings ...)
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 4/5] gnu: Add ocaml-eqaf pukkamustard
@ 2022-08-22  9:54   ` pukkamustard
  2022-08-24 16:25     ` bug#57298: " Julien Lepiller
  3 siblings, 1 reply; 16+ messages in thread
From: pukkamustard @ 2022-08-22  9:54 UTC (permalink / raw)
  To: 57298; +Cc: pukkamustard

* gnu/packages/ocaml.scm (ocaml-digestif): New variable.
---
 gnu/packages/ocaml.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 68b9bdac97..6e58c6139a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -8662,6 +8662,39 @@ (define-public ocaml-eqaf
 constant-time to avoid timing-attack with crypto stuff.")
     (license license:expat)))
 
+(define-public ocaml-digestif
+  (package
+    (name "ocaml-digestif")
+    (version "1.1.2")
+    (home-page "https://github.com/mirage/digestif")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0mc233d63y04jznsn3bxncgv7fkvyngbv6hcka412iq0y3x4qsmq"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-eqaf))
+    (native-inputs
+     (list pkg-config
+           ocaml-fmt
+           ocaml-alcotest
+           ocaml-bos
+           ocaml-astring
+           ocaml-fpath
+           ocaml-rresult
+           ocaml-findlib))
+    (synopsis "Simple hash algorithms in OCaml")
+    (description
+     "Digestif is an OCaml library that provides implementations of hash
+algorithms.  Implemented hash algorithms include MD5, SHA1, SHA224, SHA256,
+SHA384, SHA512, Blake2b, Blake2s and RIPEMD160.")
+    (license license:expat)))
+
 (define-public ocaml-bibtex2html
   (package
     (name "ocaml-bibtex2html")
-- 
2.37.1





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

* bug#57298: gnu: Add ocaml-digestif.
  2022-08-22  9:54   ` [bug#57298] [PATCH v2 5/5] gnu: Add ocaml-digestif pukkamustard
@ 2022-08-24 16:25     ` Julien Lepiller
  0 siblings, 0 replies; 16+ messages in thread
From: Julien Lepiller @ 2022-08-24 16:25 UTC (permalink / raw)
  To: pukkamustard; +Cc: 57298-done

Pushed to master as 6256e267da0e134e76364cc28b6b397ecdf4e74f -
a39207f7afd977e4e4299c6f0bb34bcb6d153818, thanks!




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

end of thread, other threads:[~2022-08-24 16:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19 15:21 [bug#57298] [PATCH 0/5] gnu: Add ocaml-digestif. (and dependencies) pukkamustard
2022-08-19 15:24 ` [bug#57298] [PATCH 1/5] gnu: Add ocaml-afl-persistent pukkamustard
2022-08-19 15:24   ` [bug#57298] [PATCH 2/5] gnu: Add ocaml-pprint pukkamustard
2022-08-20 12:03     ` Julien Lepiller
2022-08-22  9:43       ` pukkamustard
2022-08-19 15:24   ` [bug#57298] [PATCH 3/5] gnu: Add ocaml-crowbar pukkamustard
2022-08-20 12:05     ` Julien Lepiller
2022-08-22  9:45       ` pukkamustard
2022-08-19 15:24   ` [bug#57298] [PATCH 4/5] gnu: Add ocaml-eqaf pukkamustard
2022-08-19 15:24   ` [bug#57298] [PATCH 5/5] gnu: Add ocaml-digestif pukkamustard
2022-08-22  9:54 ` [bug#57298] [PATCH v2 1/5] gnu: Add ocaml-afl-persistent pukkamustard
2022-08-22  9:54   ` [bug#57298] [PATCH v2 2/5] gnu: Add ocaml-pprint pukkamustard
2022-08-22  9:54   ` [bug#57298] [PATCH v2 3/5] gnu: Add ocaml-crowbar pukkamustard
2022-08-22  9:54   ` [bug#57298] [PATCH v2 4/5] gnu: Add ocaml-eqaf pukkamustard
2022-08-22  9:54   ` [bug#57298] [PATCH v2 5/5] gnu: Add ocaml-digestif pukkamustard
2022-08-24 16:25     ` bug#57298: " Julien Lepiller

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.