2017-06-28 18:13:22 +00:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, ounit }:
|
2015-07-01 18:17:49 +00:00
|
|
|
|
|
|
|
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2017-08-22 03:52:49 +00:00
|
|
|
name = "ocaml${ocaml.version}-qcheck-0.7";
|
2015-07-01 18:17:49 +00:00
|
|
|
src = fetchzip {
|
2017-08-22 03:52:49 +00:00
|
|
|
url = https://github.com/c-cube/qcheck/archive/0.7.tar.gz;
|
|
|
|
sha256 = "1afy7li74r3ivpvq670gvsj1rmglh5rnvb17p6w8gy5rh30aljah";
|
2015-07-01 18:17:49 +00:00
|
|
|
};
|
|
|
|
|
2017-06-28 18:13:22 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ounit ];
|
2015-07-01 18:17:49 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--enable-tests" ];
|
2015-07-01 18:17:49 +00:00
|
|
|
|
|
|
|
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 18:17:49 +00:00
|
|
|
};
|
|
|
|
}
|