2016-09-14 18:04:58 +01:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ounit }:
|
2015-03-21 08:52:59 +00:00
|
|
|
|
2016-09-14 18:04:58 +01:00
|
|
|
let version = "2.2"; in
|
2015-03-21 08:52:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-qtest-${version}";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/vincent-hugot/iTeML/archive/v${version}.tar.gz";
|
2016-09-14 18:04:58 +01:00
|
|
|
sha256 = "1k68z8kby1f9s5j9xbn9bz8yhk59aalffz8gj5d1y5zhyalifrlz";
|
2015-03-21 08:52:59 +00:00
|
|
|
};
|
|
|
|
|
2016-09-14 18:04:58 +01:00
|
|
|
buildInputs = [ ocaml findlib ];
|
2015-03-21 08:52:59 +00:00
|
|
|
propagatedBuildInputs = [ ounit ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
2016-09-14 18:04:58 +01:00
|
|
|
installFlags = [ "BIN=$(out)/bin" ];
|
|
|
|
preInstall = "mkdir -p $out/bin";
|
2015-03-21 08:52:59 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|