2015-04-21 19:31:11 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, libibverbs, librdmacm, libevent
|
|
|
|
|
|
|
|
# Linux only deps
|
|
|
|
, numactl, kernel ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "accelio-${version}${stdenv.lib.optionalString (kernel != null) "-kernel"}";
|
2015-11-06 03:28:29 +01:00
|
|
|
version = "1.5";
|
2015-04-21 19:31:11 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "accelio";
|
|
|
|
repo = "accelio";
|
2015-11-06 03:28:29 +01:00
|
|
|
rev = "v1.5";
|
2015-09-01 09:25:47 +02:00
|
|
|
sha256 = "172frqk2n43g0arhazgcwfvj0syf861vdzdpxl7idr142bb0ykf7";
|
2015-04-21 19:31:11 +02:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" "pic" ];
|
2016-02-12 03:21:37 +01:00
|
|
|
|
2015-08-31 05:50:28 +02:00
|
|
|
patches = [ ./fix-printfs.patch ];
|
|
|
|
|
2015-04-21 19:31:11 +02:00
|
|
|
postPatch = ''
|
2015-09-04 18:47:23 +02:00
|
|
|
# Don't build broken examples
|
|
|
|
sed -i '/AC_CONFIG_SUBDIRS(\[\(examples\|tests\).*\/kernel/d' configure.ac
|
|
|
|
|
2015-04-21 19:31:11 +02:00
|
|
|
# Allow the installation of xio kernel headers
|
|
|
|
sed -i 's,/opt/xio,''${out},g' src/kernel/xio/Makefile.in
|
2015-06-25 02:49:48 +02:00
|
|
|
|
|
|
|
# Don't install ldconfig entries
|
|
|
|
sed -i '\,/etc/ld.so.conf.d/libxio.conf,d' src/usr/Makefile.am
|
|
|
|
sed -i '\,/sbin/ldconfig,d' src/usr/Makefile.am
|
2015-04-21 19:31:11 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ libevent ];
|
|
|
|
propagatedBuildInputs = [ libibverbs librdmacm ]
|
|
|
|
++ stdenv.lib.optional stdenv.isLinux numactl;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-rdma"
|
|
|
|
"--disable-raio-build"
|
|
|
|
] ++ stdenv.lib.optionals (kernel != null) [
|
|
|
|
"--enable-kernel-module"
|
|
|
|
"--with-kernel=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source"
|
|
|
|
"--with-kernel-build=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
];
|
|
|
|
|
|
|
|
INSTALL_MOD_PATH = "\${out}";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.accelio.org/;
|
2016-01-11 23:15:17 +01:00
|
|
|
description = "High-performance messaging and RPC library";
|
|
|
|
longDescription = ''
|
|
|
|
A high-performance asynchronous reliable messaging and RPC library
|
|
|
|
optimized for hardware acceleration.
|
|
|
|
'';
|
2015-04-21 19:31:11 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = with platforms; linux ++ freebsd;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2016-03-26 20:14:43 +01:00
|
|
|
# kernel 4.2 is the most recent supported kernel
|
2016-03-27 01:36:30 +01:00
|
|
|
broken = kernel != null &&
|
|
|
|
(builtins.compareVersions kernel.version "4.2" == 1 ||
|
|
|
|
(kernel.features.grsecurity or false));
|
2015-04-21 19:31:11 +02:00
|
|
|
};
|
|
|
|
}
|