blob: e68a8729c014d31557a8f0700b93730cb2b2c05f (
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
|
{ stdenv, fetchzip, ocaml, oasis, findlib, ounit }:
let version = "2.0.1"; in
stdenv.mkDerivation {
name = "ocaml-qtest-${version}";
src = fetchzip {
url = "https://github.com/vincent-hugot/iTeML/archive/v${version}.tar.gz";
sha256 = "00sir7q7z78s22w8fzrgw9gqm7r8ww0bgwqxrq6nsbbclgxj9c6i";
};
buildInputs = [ ocaml oasis findlib ];
propagatedBuildInputs = [ ounit ];
buildPhase = "ocaml do.ml qtest build $out";
createFindlibDestdir = true;
installPhase = "ocaml do.ml qtest install $out";
meta = {
description = "Inline (Unit) Tests for OCaml (formerly “qtest”)";
homepage = https://github.com/vincent-hugot/iTeML;
platforms = ocaml.meta.platforms;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}
|