1 { lib, stdenv, aflplusplus}:
4 version = lib.getVersion aflplusplus;
5 pname = "libdislocator";
8 postUnpack = "chmod -R +w ${aflplusplus.src.name}";
9 sourceRoot = "${aflplusplus.src.name}/libdislocator";
11 makeFlags = [ "PREFIX=$(out)" ];
15 # issue is fixed upstream: https://github.com/AFLplusplus/AFLplusplus/commit/2a60ceb6944a7ca273057ddf64dcf837bf7f9521
16 sed -i 's/README\.dislocator\.md/README\.md/g' Makefile
20 cat > $out/bin/get-libdislocator-so <<END
22 echo $out/lib/afl/libdislocator.so
24 chmod +x $out/bin/get-libdislocator-so
28 homepage = "https://github.com/vanhauser-thc/AFLplusplus";
30 Drop-in replacement for the libc allocator which improves
31 the odds of bumping into heap-related security bugs in
34 license = lib.licenses.asl20;
35 maintainers = with maintainers; [ ris ];