2021-01-11 12:49:15 +00:00
|
|
|
{ lib, buildOcaml, ocaml, fetchurl, ounit }:
|
2018-08-21 17:17:57 +01:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 17:17:57 +01:00
|
|
|
then throw "pa_ounit is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
2015-05-22 04:36:10 +01:00
|
|
|
|
|
|
|
buildOcaml rec {
|
2015-09-06 20:15:10 +01:00
|
|
|
name = "pa_ounit";
|
2018-03-21 04:15:26 +00:00
|
|
|
version = "113.00.00";
|
2015-05-22 04:36:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/janestreet/pa_ounit/archive/${version}.tar.gz";
|
2018-03-21 04:15:26 +00:00
|
|
|
sha256 = "0vi0p2hxcrdsl0319c9s8mh9hmk2i4ir6c6vrj8axkc37zkgc437";
|
2015-05-22 04:36:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ounit ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/janestreet/pa_ounit";
|
2015-05-22 04:36:10 +01:00
|
|
|
description = "OCaml inline testing";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|