summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/enumerate/default.nix
blob: 557f2f88d8d232b0aa58429912631590f30449ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, type_conv, camlp4 }:

assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";

stdenv.mkDerivation {
  name = "ocaml-enumerate-111.08.00";

  src = fetchurl {
    url = https://ocaml.janestreet.com/ocaml-core/111.08.00/individual/enumerate-111.08.00.tar.gz;
    sha256 = "0b6mx5p01lcpimvak4wx6aj2119707wsfzd83rwgb91bhpgzh156";
  };

  buildInputs = [ ocaml findlib ocamlbuild ];
  propagatedBuildInputs = [ type_conv camlp4 ];

  createFindlibDestdir = true;

  meta = {
    homepage = https://ocaml.janestreet.com/;
    description = "Quotation expanders for enumerating finite types";
    license = stdenv.lib.licenses.asl20;
    platforms = ocaml.meta.platforms or [];
  };
}