From c184d2e3343c2d2adafa9eaa36179f53a558e264 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 4 Mar 2017 11:50:38 +0100 Subject: [PATCH] ocamlPackages.core_extended_p4: fix build on linux --- pkgs/development/ocaml-modules/core_extended/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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 < #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