diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-03-04 11:50:38 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-03-04 11:52:30 +0100 |
commit | c184d2e3343c2d2adafa9eaa36179f53a558e264 (patch) | |
tree | f8883958953ba83f0d10771e281e984cfc38ce96 /pkgs/development | |
parent | 57c6fac3e980bb22cbd9ba8fa4c97b4d49292c7f (diff) |
ocamlPackages.core_extended_p4: fix build on linux
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ocaml-modules/core_extended/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/core_extended/default.nix b/pkgs/development/ocaml-modules/core_extended/default.nix index fef4fd81158f..fe4fc5d87ab7 100644 --- a/pkgs/development/ocaml-modules/core_extended/default.nix +++ b/pkgs/development/ocaml-modules/core_extended/default.nix @@ -12,6 +12,13 @@ buildOcaml rec { sha256 = "f87b0661b6c2cfb545ec61d1cb2ab1b9c4967b6ac14e651de41d3a6fb7f0f1e3"; }; + preConfigure = stdenv.lib.optionalString stdenv.isLinux '' + patch lib/extended_unix_stubs.c <<EOF + 0a1 + > #define _LINUX_QUOTA_VERSION 2 + EOF + ''; + hasSharedObjects = true; buildInputs = [ pa_bench pa_test pa_ounit ]; propagatedBuildInputs = [bin_prot_p4 comparelib core_p4 custom_printf fieldslib_p4 |