diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-04-01 10:53:47 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-04-01 12:30:14 +0200 |
commit | e5d0593a4289abc33505f061239b32081a710e06 (patch) | |
tree | 3fc1674297d1ae33fb341f1ec7860aa672b2f25d /pkgs/development/ocaml-modules/janestreet | |
parent | 86f4ded7898eee8ba3dd808d65095f5afacc1d29 (diff) | |
download | nixlib-e5d0593a4289abc33505f061239b32081a710e06.tar nixlib-e5d0593a4289abc33505f061239b32081a710e06.tar.gz nixlib-e5d0593a4289abc33505f061239b32081a710e06.tar.bz2 nixlib-e5d0593a4289abc33505f061239b32081a710e06.tar.lz nixlib-e5d0593a4289abc33505f061239b32081a710e06.tar.xz nixlib-e5d0593a4289abc33505f061239b32081a710e06.tar.zst nixlib-e5d0593a4289abc33505f061239b32081a710e06.zip |
ocamlPackages.core_extended: fix build on Linux
Diffstat (limited to 'pkgs/development/ocaml-modules/janestreet')
-rw-r--r-- | pkgs/development/ocaml-modules/janestreet/core-extended.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/core-extended.nix b/pkgs/development/ocaml-modules/janestreet/core-extended.nix index df7f6903cd24..dc84ea34337e 100644 --- a/pkgs/development/ocaml-modules/janestreet/core-extended.nix +++ b/pkgs/development/ocaml-modules/janestreet/core-extended.nix @@ -13,6 +13,13 @@ buildOcamlJane rec { 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"; |