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