1{stdenv, buildOcaml, fetchurl, type_conv}:
2
3buildOcaml rec {
4 name = "variantslib";
5 version = "109.15.03";
6
7 minimumSupportedOcamlVersion = "4.00";
8
9 src = fetchurl {
10 url = "https://github.com/janestreet/variantslib/archive/${version}.tar.gz";
11 sha256 = "a948dcdd4ca54786fe0646386b6e37a9db03bf276c6557ea374d82740bf18055";
12 };
13
14 propagatedBuildInputs = [ type_conv ];
15
16 meta = with stdenv.lib; {
17 homepage = https://github.com/janestreet/variantslib;
18 description = "OCaml variants as first class values";
19 license = licenses.asl20;
20 maintainers = [ maintainers.ericbmerritt ];
21 };
22}