diff options
author | sternenseemann <git@lukasepple.de> | 2020-05-21 02:22:43 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-05-24 10:13:00 +0200 |
commit | 0679fb9696a275291e3ea7ad4977e6b72f57e6be (patch) | |
tree | 07a375c5a3097cd0545e1265e7b7459b340181d4 /pkgs/development/ocaml-modules | |
parent | d89160e7b03d75f4a5c07d6e5e8f95e4eabbb6b4 (diff) | |
download | nixlib-0679fb9696a275291e3ea7ad4977e6b72f57e6be.tar nixlib-0679fb9696a275291e3ea7ad4977e6b72f57e6be.tar.gz nixlib-0679fb9696a275291e3ea7ad4977e6b72f57e6be.tar.bz2 nixlib-0679fb9696a275291e3ea7ad4977e6b72f57e6be.tar.lz nixlib-0679fb9696a275291e3ea7ad4977e6b72f57e6be.tar.xz nixlib-0679fb9696a275291e3ea7ad4977e6b72f57e6be.tar.zst nixlib-0679fb9696a275291e3ea7ad4977e6b72f57e6be.zip |
ocamlPackages.afl-persistent: init at 1.3
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/afl-persistent/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/afl-persistent/default.nix b/pkgs/development/ocaml-modules/afl-persistent/default.nix new file mode 100644 index 000000000000..5ac352e0762c --- /dev/null +++ b/pkgs/development/ocaml-modules/afl-persistent/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchFromGitHub, ocaml, findlib, opaline }: + +stdenv.mkDerivation rec { + pname = "afl-persistent"; + version = "1.3"; + name = "ocaml${ocaml.version}-${pname}-${version}"; + + src = fetchFromGitHub { + owner = "stedolan"; + repo = "ocaml-${pname}"; + rev = "v${version}"; + sha256 = "06yyds2vcwlfr2nd3gvyrazlijjcrd1abnvkfpkaadgwdw3qam1i"; + }; + + buildInputs = [ ocaml findlib ]; + + # don't run tests in buildPhase + # don't overwrite test binary + postPatch = '' + sed -i 's/ && \.\/test$//' build.sh + sed -i '/^ocamlopt.*test.ml -o test$/ s/$/2/' build.sh + patchShebangs build.sh + ''; + + buildPhase = "./build.sh"; + installPhase = '' + ${opaline}/bin/opaline -prefix $out -libdir $out/lib/ocaml/${ocaml.version}/site-lib/ ${pname}.install + ''; + + doCheck = true; + checkPhase = "./_build/test && ./_build/test2"; + + meta = with stdenv.lib; { + homepage = "https://github.com/stedolan/ocaml-afl-persistent"; + description = "persistent-mode afl-fuzz for ocaml"; + license = licenses.mit; + maintainers = [ maintainers.sternenseemann ]; + }; +} |