2015-03-21 08:52:59 +00:00
|
|
|
{ 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;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-03-21 08:52:59 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|