2016-09-14 02:59:22 +02:00
|
|
|
{stdenv, buildOcaml, fetchurl, bin_prot_p4, comparelib, core_p4, custom_printf,
|
2016-09-14 03:48:15 +02:00
|
|
|
fieldslib_p4, pa_bench, pa_ounit, pipebang, pa_test, textutils_p4, re2_p4, sexplib_p4}:
|
2015-05-24 20:36:25 +02:00
|
|
|
|
|
|
|
buildOcaml rec {
|
2015-09-06 21:15:10 +02:00
|
|
|
name = "core_extended";
|
2015-05-24 20:36:25 +02:00
|
|
|
version = "112.24.00";
|
|
|
|
|
|
|
|
minimumSupportedOcamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/janestreet/core_extended/archive/${version}.tar.gz";
|
|
|
|
sha256 = "f87b0661b6c2cfb545ec61d1cb2ab1b9c4967b6ac14e651de41d3a6fb7f0f1e3";
|
|
|
|
};
|
|
|
|
|
2017-03-04 11:50:38 +01:00
|
|
|
preConfigure = stdenv.lib.optionalString stdenv.isLinux ''
|
|
|
|
patch lib/extended_unix_stubs.c <<EOF
|
|
|
|
0a1
|
|
|
|
> #define _LINUX_QUOTA_VERSION 2
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2015-05-24 20:36:25 +02:00
|
|
|
hasSharedObjects = true;
|
2015-09-06 21:15:10 +02:00
|
|
|
buildInputs = [ pa_bench pa_test pa_ounit ];
|
2016-09-14 02:59:22 +02:00
|
|
|
propagatedBuildInputs = [bin_prot_p4 comparelib core_p4 custom_printf fieldslib_p4
|
2016-09-14 03:48:15 +02:00
|
|
|
pipebang textutils_p4 re2_p4 sexplib_p4 ];
|
2015-05-24 20:36:25 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/janestreet/core_extended;
|
|
|
|
description = "Jane Street Capital's standard library overlay";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|