summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/janestreet/core-extended.nix
blob: 19550a82327a46dcaa6f88f4eecf915d00a0a89c (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
25
26
27
28
{stdenv, buildOcamlJane,
 core,
 bin_prot, fieldslib, sexplib, typerep, variantslib,
 ppx_assert, ppx_bench, ppx_driver, ppx_expect, ppx_inline_test, ppx_jane,
 re2, textutils}:

buildOcamlJane {
  name = "core_extended";
  hash = "1j4ipcn741j8w3h4gpv5sygjzg6b5g6gc2jcrr4n0jyn5dq8b0p5";
  propagatedBuildInputs =
    [ core bin_prot fieldslib sexplib typerep variantslib
      ppx_assert ppx_bench ppx_driver ppx_expect ppx_inline_test ppx_jane
      re2 textutils ];

  patchPhase = stdenv.lib.optionalString stdenv.isLinux ''
    patch src/extended_unix_stubs.c <<EOF
0a1
> #define _LINUX_QUOTA_VERSION 2
EOF
  '';

  meta = with stdenv.lib; {
    homepage = "https://github.com/janestreet/core_extended";
    description = "Jane Street Capital's standard library overlay";
    license = licenses.asl20;
    maintainers = [ maintainers.maurer maintainers.ericbmerritt ];
  };
}