1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, camlp4 }:
2
3stdenv.mkDerivation {
4 name = "ounit-2.0.0";
5
6 src = fetchurl {
7 url = https://forge.ocamlcore.org/frs/download.php/1258/ounit-2.0.0.tar.gz;
8 sha256 = "118xsadrx84pif9vaq13hv4yh22w9kmr0ypvhrs0viir1jr0ajjd";
9 };
10
11 buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
12
13 dontAddPrefix = true;
14
15 doCheck = true;
16
17 checkTarget = "test";
18
19 createFindlibDestdir = true;
20
21 meta = {
22 homepage = http://ounit.forge.ocamlcore.org/;
23 description = "Unit test framework for OCaml";
24 license = stdenv.lib.licenses.mit;
25 platforms = ocaml.meta.platforms or [];
26 maintainers = [
27 stdenv.lib.maintainers.z77z
28 ];
29 };
30}