git.iko.soy/typeable/nixpkgs
on master help sign in
ocaml-qcheck: init at 0.4.0.1
commitdab57252b1b47c70dc209a8b1fa4fbafc04b323a authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 1 Jul 2015, 20:17 (11 years ago) parentaf7b236
2 files changed+33
pkgs/development/ocaml-modules/qcheck/default.nix+29 pkgs/top-level/all-packages.nix+4
pkgs/development/ocaml-modules/qcheck/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ stdenv, fetchzip, ocaml, findlib, oasis, ounit }:
2+
3+assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";
4+
5+stdenv.mkDerivation {
6+
7+ name = "ocaml-qcheck-0.4.0.1";
8+ src = fetchzip {
9+ url = https://github.com/c-cube/qcheck/archive/0.4.0.1.tar.gz;
10+ sha256 = "0j2jdrfz8rrslgjihnfgg8yy12860z2vvf7hqzjbmfmf03hz4pgv";
11+ };
12+
13+ buildInputs = [ ocaml findlib oasis ounit ];
14+
15+ configureFlags = "--enable-tests --enable-ounit";
16+
17+ doCheck = true;
18+ checkPhase = "ocaml setup.ml -test";
19+
20+ createFindlibDestdir = true;
21+
22+ meta = {
23+ description = "QuickCheck inspired property-based testing for OCaml";
24+ homepage = https://github.com/c-cube/qcheck/;
25+ license = stdenv.lib.licenses.bsd2;
26+ maintainers = with stdenv.lib.maintainers; [ vbgl ];
27+ platforms = ocaml.meta.platforms;
28+ };
29+}
pkgs/top-level/all-packages.nix+4
@@ -4545,6 +4545,10 @@ let
45454545
45464546 pycaml = callPackage ../development/ocaml-modules/pycaml { };
45474547
4548+ qcheck = callPackage ../development/ocaml-modules/qcheck {
4549+ oasis = ocaml_oasis;
4550+ };
4551+
45484552 qtest = callPackage ../development/ocaml-modules/qtest {
45494553 oasis = ocaml_oasis;
45504554 };