Subject: [bug#70146] [PATCH 045/147] gnu: Add rust-afl-0.11.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 2 Apr 2024 18:03:57 +0200

* gnu/packages/crates-io.scm (rust-afl-0.11): New variable.

Change-Id: Ia9fd47fce07d978ccb96b621632e06a3776e2450
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fc8f7dd413..f0a38b7de9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -647,6 +647,31 @@ (define-public rust-afl-0.12
      "Fuzz Rust code with american-fuzzy-lop.")
     (license license:asl2.0)))
 
+(define-public rust-afl-0.11
+  (package
+    (inherit rust-afl-0.12)
+    (name "rust-afl")
+    (version "0.11.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "afl" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (modules '((guix build utils)))
+       (snippet
+         #~(delete-file
+             "AFLplusplus/testcases/archives/common/ar/small_archive.a"))
+       (sha256
+        (base32 "0a2jm690mcxd073j9isd16rpzkjfmpgamw9h64f5l2fpns0423vc"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-cc" ,rust-cc-1)
+                       ("rust-clap" ,rust-clap-2)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-rustc-version" ,rust-rustc-version-0.4)
+                       ("rust-xdg" ,rust-xdg-2))))))
+
 (define-public rust-ahash-0.8
   (package
     (name "rust-ahash")
-- 
2.41.0