2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, oasis, ounit }:
|
2015-07-01 19:17:49 +01:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "ocaml-qcheck-0.4.0.1";
|
|
|
|
src = fetchzip {
|
|
|
|
url = https://github.com/c-cube/qcheck/archive/0.4.0.1.tar.gz;
|
|
|
|
sha256 = "0j2jdrfz8rrslgjihnfgg8yy12860z2vvf7hqzjbmfmf03hz4pgv";
|
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild oasis ounit ];
|
2015-07-01 19:17:49 +01:00
|
|
|
|
|
|
|
configureFlags = "--enable-tests --enable-ounit";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "ocaml setup.ml -test";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "QuickCheck inspired property-based testing for OCaml";
|
|
|
|
homepage = https://github.com/c-cube/qcheck/;
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-07-01 19:17:49 +01:00
|
|
|
};
|
|
|
|
}
|