nixpkgs/pkgs/development/ocaml-modules/qtest/default.nix
Vincent Laporte 2a62e931c1 ocamlPackages.qtest: 2.2 -> 2.6
ocamlPackages.batteries: 2.6.0 -> 2.7.0
2017-08-21 09:39:45 +02:00

29 lines
853 B
Nix

{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, qcheck, ounit }:
if !stdenv.lib.versionAtLeast ocaml.version "4"
then throw "qtest is not available for OCaml ${ocaml.version}"
else
let version = "2.6"; in
stdenv.mkDerivation {
name = "ocaml-qtest-${version}";
src = fetchzip {
url = "https://github.com/vincent-hugot/iTeML/archive/v${version}.tar.gz";
sha256 = "1v5c1n5p8rhnisn606fs05q8764lqwgw08w66y5dm8wgmxgmsb3k";
};
buildInputs = [ ocaml findlib ocamlbuild ];
propagatedBuildInputs = [ qcheck ounit ];
installFlags = [ "BIN=$(out)/bin" ];
preInstall = "mkdir -p $out/bin";
meta = {
description = "Inline (Unit) Tests for OCaml (formerly qtest)";
homepage = https://github.com/vincent-hugot/iTeML;
platforms = ocaml.meta.platforms or [];
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}