ocamlPackages.core_extended_p4: fix build on linux

This commit is contained in:
Vincent Laporte 2017-03-04 11:50:38 +01:00
parent 57c6fac3e9
commit c184d2e334

View File

@ -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