From f3ea6ec1f2f0471f1a09e29a932805bcc31599ac Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 9 Jul 2020 12:19:13 +0300 Subject: gnu: Add rust-afl-0.8. * gnu/packages/crates-io.scm (rust-afl-0.8): New variable. (rust-afl-0.5): Inherit from rust-afl-0.8. --- gnu/packages/crates-io.scm | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d79d8cab53..4c84735eb8 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -181,10 +181,10 @@ the Rust programming language.") (license (list license:bsd-3 license:zlib)))) -(define-public rust-afl-0.5 +(define-public rust-afl-0.8 (package (name "rust-afl") - (version "0.5.2") + (version "0.8.0") (source (origin (method url-fetch) @@ -193,15 +193,20 @@ the Rust programming language.") (string-append name "-" version ".tar.gz")) (sha256 (base32 - "0azpi917l8nhvx25n2v670nvkxkrhcwmddfi85qnr6kchmi6y946")))) + "1rw11hycfjhqbc7z1smn75m0sczq519msjwimxh7b8s6n4pzk5r7")))) (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs + (("rust-cc" ,rust-cc-1.0) + ("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.2) + ("rust-xdg" ,rust-xdg-2.2)) + #:cargo-development-inputs (("rust-rustc-version" ,rust-rustc-version-0.2) - ("rust-cc" ,rust-cc-1.0) - ("rust-xdg" ,rust-xdg-2.2) - ("rust-clap" ,rust-clap-2)))) + ("rust-xdg" ,rust-xdg-2.2)))) (home-page "https://github.com/rust-fuzz/afl.rs") (synopsis "Fuzzing Rust code with american-fuzzy-lop") @@ -209,6 +214,31 @@ the Rust programming language.") "Fuzz Rust code with american-fuzzy-lop.") (license license:asl2.0))) +(define-public rust-afl-0.5 + (package + (inherit rust-afl-0.8) + (name "rust-afl") + (version "0.5.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "afl" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0azpi917l8nhvx25n2v670nvkxkrhcwmddfi85qnr6kchmi6y946")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-rustc-version" ,rust-rustc-version-0.2) + ("rust-cc" ,rust-cc-1.0) + ("rust-xdg" ,rust-xdg-2.2) + ("rust-clap" ,rust-clap-2)) + #:cargo-development-inputs + (("rust-rustc-version" ,rust-rustc-version-0.2) + ("rust-xdg" ,rust-xdg-2.2)))))) + (define-public rust-afl-0.4 (package (name "rust-afl") -- cgit v1.2.3