nixpkgs/pkgs/development/ocaml-modules/alcotest/default.nix

27 lines
797 B
Nix
Raw Normal View History

2016-10-25 17:32:16 +00:00
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, topkg, opam, cmdliner, astring, fmt, result }:
2016-10-25 17:32:16 +00:00
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-alcotest-${version}";
version = "0.7.2";
2015-10-13 01:46:01 +00:00
src = fetchzip {
url = "https://github.com/mirage/alcotest/archive/${version}.tar.gz";
2016-10-25 17:32:16 +00:00
sha256 = "1qgsz2zz5ky6s5pf3j3shc4fjc36rqnjflk8x0wl1fcpvvkr52md";
};
2016-10-25 17:32:16 +00:00
buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
propagatedBuildInputs = [ cmdliner astring fmt result ];
inherit (topkg) buildPhase installPhase;
createFindlibDestdir = true;
meta = with stdenv.lib; {
2015-10-13 01:46:01 +00:00
homepage = https://github.com/mirage/alcotest;
description = "A lightweight and colourful test framework";
license = stdenv.lib.licenses.isc;
maintainers = [ maintainers.ericbmerritt ];
};
}