2021-01-11 13:14:57 +00:00
|
|
|
{ lib, buildOcaml, ocaml, fetchurl, type_conv }:
|
2018-08-21 14:30:36 +01:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2018-08-21 14:30:36 +01:00
|
|
|
then throw "variantslib-109.15.03 is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
2015-05-24 18:59:45 +01:00
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "variantslib";
|
|
|
|
version = "109.15.03";
|
|
|
|
|
|
|
|
minimumSupportedOcamlVersion = "4.00";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/janestreet/variantslib/archive/${version}.tar.gz";
|
|
|
|
sha256 = "a948dcdd4ca54786fe0646386b6e37a9db03bf276c6557ea374d82740bf18055";
|
|
|
|
};
|
|
|
|
|
2015-09-06 20:15:10 +01:00
|
|
|
propagatedBuildInputs = [ type_conv ];
|
2015-05-24 18:59:45 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/janestreet/variantslib";
|
2015-05-24 18:59:45 +01:00
|
|
|
description = "OCaml variants as first class values";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|