2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, type_conv, camlp4 }:
|
2015-03-06 19:28:56 +00:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
assert lib.versionAtLeast (lib.getVersion ocaml) "4.00";
|
2015-03-06 19:28:56 +00:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 14:23:32 +01:00
|
|
|
then throw "enumerate-111.08.00 is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
2015-03-06 19:28:56 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-enumerate-111.08.00";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://ocaml.janestreet.com/ocaml-core/111.08.00/individual/enumerate-111.08.00.tar.gz";
|
2015-03-06 19:28:56 +00:00
|
|
|
sha256 = "0b6mx5p01lcpimvak4wx6aj2119707wsfzd83rwgb91bhpgzh156";
|
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-09-06 20:15:10 +01:00
|
|
|
propagatedBuildInputs = [ type_conv camlp4 ];
|
2015-03-06 19:28:56 +00:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://ocaml.janestreet.com/";
|
2015-03-06 19:28:56 +00:00
|
|
|
description = "Quotation expanders for enumerating finite types";
|
2021-01-11 12:49:15 +00:00
|
|
|
license = lib.licenses.asl20;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-03-06 19:28:56 +00:00
|
|
|
};
|
|
|
|
}
|