summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/pa_ounit/default.nix
blob: a9e49bab34a169458ece4492ab90e3819631e56a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildOcaml, ocaml, fetchurl, ounit }:

if lib.versionAtLeast ocaml.version "4.06"
then throw "pa_ounit is not available for OCaml ${ocaml.version}"
else

buildOcaml rec {
  pname = "pa_ounit";
  version = "113.00.00";

  src = fetchurl {
    url = "https://github.com/janestreet/pa_ounit/archive/${version}.tar.gz";
    sha256 = "0vi0p2hxcrdsl0319c9s8mh9hmk2i4ir6c6vrj8axkc37zkgc437";
  };

  propagatedBuildInputs = [ ounit ];

  meta = with lib; {
    homepage = "https://github.com/janestreet/pa_ounit";
    description = "OCaml inline testing";
    license = licenses.asl20;
    maintainers = [ maintainers.ericbmerritt ];
  };
}