2021-01-15 22:18:51 +00:00
|
|
|
{ lib, buildOcaml, ocaml, fetchurl, ounit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "pa_ounit is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "pa_ounit";
|
|
|
|
version = "113.00.00";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/janestreet/pa_ounit/archive/${version}.tar.gz";
|
|
|
|
sha256 = "0vi0p2hxcrdsl0319c9s8mh9hmk2i4ir6c6vrj8axkc37zkgc437";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ounit ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/janestreet/pa_ounit";
|
|
|
|
description = "OCaml inline testing";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|