2016-10-08 08:44:25 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
|
2016-02-17 18:53:48 +01:00
|
|
|
|
2017-07-31 19:12:27 +02:00
|
|
|
let version = "0.4.0.1"; in
|
2016-02-17 18:53:48 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-07-31 19:12:27 +02:00
|
|
|
name = "ocaml${ocaml.version}-gen-${version}";
|
2016-02-17 18:53:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "gen";
|
|
|
|
rev = "${version}";
|
2017-07-31 19:12:27 +02:00
|
|
|
sha256 = "0gg94f5l899rni3r7s7wq8plgazmbsaw498xckp25kkgpmkk61ml";
|
2016-02-17 18:53:48 +01:00
|
|
|
};
|
|
|
|
|
2016-10-08 08:44:25 +02:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild qtest ounit ];
|
2016-02-17 18:53:48 +01: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 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2016-02-17 18:53:48 +01:00
|
|
|
};
|
|
|
|
}
|