about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ounit/default.nix
blob: 62bf7f89c4912dfff6803e099102c30080cec94a (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
25
26
27
28
29
30
31
32
33
34
35
{stdenv, fetchurl, ocaml, findlib}:

let
  ocaml_version = (builtins.parseDrvName ocaml.name).version;
  version = "1.0.3";
in

stdenv.mkDerivation {
  name = "ounit-${version}";

  src = fetchurl {
    url = "http://www.xs4all.nl/~mmzeeman/ocaml/ounit-${version}.tar.gz";
    sha256 = "1n7ylrbi2m00gn0kjg5zxnyzxki8v1dy31fcz3vh1xnwcx6hii97";
  };

  buildInputs = [ocaml findlib];

  configurePhase = "true";  	# Skip configure

  buildFlags = "all allopt";

  doCheck = true;

  checkTarget = "test";

  meta = {
    homepage = http://www.xs4all.nl/~mmzeeman/ocaml/;
    description = "Unit test framework for OCaml";
    license = "MIT/X11";
    platforms = ocaml.meta.platforms;
    maintainers = [
      stdenv.lib.maintainers.z77z
    ];
  };
}