10 stdenv.mkDerivation rec {
11 pname = "afl-persistent";
13 name = "ocaml${ocaml.version}-${pname}-${version}";
15 src = fetchFromGitHub {
17 repo = "ocaml-${pname}";
19 sha256 = "06yyds2vcwlfr2nd3gvyrazlijjcrd1abnvkfpkaadgwdw3qam1i";
29 # don't run tests in buildPhase
30 # don't overwrite test binary
32 sed -i 's/ && \.\/test$//' build.sh
33 sed -i '/^ocamlopt.*test.ml -o test$/ s/$/2/' build.sh
34 patchShebangs build.sh
37 buildPhase = "./build.sh";
39 ${opaline}/bin/opaline -prefix $out -libdir $out/lib/ocaml/${ocaml.version}/site-lib/ ${pname}.install
43 checkPhase = "./_build/test && ./_build/test2";
46 homepage = "https://github.com/stedolan/ocaml-afl-persistent";
47 description = "persistent-mode afl-fuzz for ocaml";
48 license = licenses.mit;
49 maintainers = [ maintainers.sternenseemann ];