2016-10-08 06:44:25 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
|
2016-02-17 17:53:48 +00:00
|
|
|
|
2016-10-24 02:07:14 +00:00
|
|
|
let version = "0.4"; in
|
2016-02-17 17:53:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-gen-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "gen";
|
|
|
|
rev = "${version}";
|
2016-10-24 02:07:14 +00:00
|
|
|
sha256 = "041dga300fh1y6fi8y0fkri2qda406lf2dmbrgllazw3rp07zkzj";
|
2016-02-17 17:53:48 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 06:44:25 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild qtest ounit ];
|
2016-02-17 17:53:48 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/c-cube/gen;
|
|
|
|
description = "Simple, efficient iterators for OCaml";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2016-02-17 17:53:48 +00:00
|
|
|
};
|
|
|
|
}
|