2016-10-08 06:44:25 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
|
2016-02-17 17:53:48 +00:00
|
|
|
|
2017-11-12 08:28:24 +00:00
|
|
|
let version = "0.5"; in
|
2016-02-17 17:53:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-07-31 17:12:27 +00:00
|
|
|
name = "ocaml${ocaml.version}-gen-${version}";
|
2016-02-17 17:53:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "gen";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2017-11-12 08:28:24 +00:00
|
|
|
sha256 = "14b8vg914nb0yp1hgxzm29bg692m0gqncjj43b599s98s1cwl92h";
|
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
|
|
|
|
2017-11-12 08:28:24 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-tests"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2016-02-17 17:53:48 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/c-cube/gen";
|
2016-02-17 17:53:48 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|