{ stdenv, afl}: stdenv.mkDerivation { version = (builtins.parseDrvName afl.name).version; pname = "libdislocator"; src = afl.src; sourceRoot = "${afl.name}/libdislocator"; makeFlags = [ "PREFIX=$(out)" ]; preInstall = '' mkdir -p $out/lib/afl ''; postInstall = '' mkdir $out/bin cat > $out/bin/get-libdislocator-so <