afl: various cleanups
This commit is contained in:
parent
5da3d039d4
commit
e2b79b10b5
@ -15,21 +15,18 @@ let
|
|||||||
url = "http://lcamtuf.coredump.cx/afl/releases/${name}.tgz";
|
url = "http://lcamtuf.coredump.cx/afl/releases/${name}.tgz";
|
||||||
sha256 = "0ig0ij4n1pwry5dw1hk4q88801jzzy2cric6y2gd6560j55lnqa3";
|
sha256 = "0ig0ij4n1pwry5dw1hk4q88801jzzy2cric6y2gd6560j55lnqa3";
|
||||||
};
|
};
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
# Note: libcgroup isn't needed for building, just for the afl-cgroup
|
# Note: libcgroup isn't needed for building, just for the afl-cgroup
|
||||||
# script.
|
# script.
|
||||||
buildInputs = [ makeWrapper llvm which ];
|
nativeBuildInputs = [ makeWrapper which ];
|
||||||
|
buildInputs = [ llvm ];
|
||||||
|
|
||||||
buildPhase = ''
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
make PREFIX=$out
|
postBuild = ''
|
||||||
cd llvm_mode
|
make -C llvm_mode $makeFlags -j$NIX_BUILD_CORES
|
||||||
make PREFIX=$out
|
|
||||||
cd ..
|
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
postInstall = ''
|
||||||
# Do the normal installation
|
|
||||||
make install PREFIX=$out
|
|
||||||
|
|
||||||
# Install the custom QEMU emulator for binary blob fuzzing.
|
# Install the custom QEMU emulator for binary blob fuzzing.
|
||||||
cp ${afl-qemu}/bin/${qemu-exe-name} $out/bin/afl-qemu-trace
|
cp ${afl-qemu}/bin/${qemu-exe-name} $out/bin/afl-qemu-trace
|
||||||
|
|
||||||
@ -55,9 +52,7 @@ let
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru.qemu = afl-qemu;
|
||||||
qemu = afl-qemu;
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Powerful fuzzer via genetic algorithms and instrumentation";
|
description = "Powerful fuzzer via genetic algorithms and instrumentation";
|
||||||
@ -78,5 +73,3 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in afl
|
in afl
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user