guix_mirror_bot pushed a commit to branch ocaml-team
in repository guix.
commit 0667e819159fc0aae90d050c6459ef29f85a0b91
Author: Jason Conroy <[email protected]>
AuthorDate: Thu Feb 12 11:03:54 2026 -0500
gnu: ocaml5: Add ocaml-afl-persistent.
* gnu/packages/ocaml5.scm (ocaml-afl-persistent): New variable.
Change-Id: I84563f91b1a83d25260340c57aa552a19c0e1b8e
Signed-off-by: Julien Lepiller <[email protected]>
---
gnu/packages/ocaml5.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index 141329263a..8f59a24b3e 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -3092,6 +3092,37 @@ qcheck library. The possibilities range from trivial
tests -- extremely simple
to use -- to sophisticated random generation of test cases.")
(license license:lgpl3+)))
+(define-public ocaml-afl-persistent
+ (package
+ (name "ocaml5-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")))
+ ;; The tests are already run in the build.sh script.
+ (delete 'check))))
+ (native-inputs (list opam-installer))
+ (home-page "https://github.com/stedolan/ocaml-afl-persistent")
+ (synopsis "Allows use of afl-fuzz in 'persistent mode' for performance")
+ (description
+ "The afl-fuzz tool 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)))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar