nixpkgs/pkgs/tools/security/afl
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
..
qemu-patches afl: Fix afl-qemu build by applying new patches 2020-03-13 21:43:51 +01:00
default.nix afl: 2.56b -> 2.57b 2020-07-02 01:05:31 +00:00
libdislocator.nix treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
qemu.nix treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
README.md afl: 2.52b -> 2.56b 2019-12-30 10:21:19 -06:00

Updating the QEMU patches

When updating to the latest American Fuzzy Lop, make sure to check for any new patches to qemu for binary fuzzing support:

https://github.com/google/AFL/tree/master/qemu_mode

Be sure to check the build script and make sure it's also using the right QEMU version and options in qemu.nix:

https://github.com/google/AFL/blob/master/qemu_mode/build_qemu_support.sh

afl-config.h, afl-types.h, and afl-qemu-cpu-inl.h are part of the afl source code, and copied from config.h, types.h and afl-qemu-cpu-inl.h appropriately. These files and the QEMU patches need to be slightly adjusted to fix their #includes (the patches try to otherwise include files like ../../config.h which causes the build to fail).