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