nixpkgs/pkgs/development/libraries/accelio/default.nix

54 lines
1.7 KiB
Nix
Raw Normal View History

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-07-30 03:13:26 +02:00
version = "2015-07-28";
2015-04-21 19:31:11 +02:00
src = fetchFromGitHub {
owner = "accelio";
repo = "accelio";
2015-07-30 03:13:26 +02:00
rev = "0c4b6d535831650112ba9409a5c7d6e1bc436d61";
sha256 = "044m92pnvdl64irvy7bdqr51gz0qr5f14xnsig4gkc3vb0afbb4j";
2015-04-21 19:31:11 +02:00
};
postPatch = ''
# Don't build broken examples
2015-07-30 03:13:26 +02:00
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/;
description = "a high-performance asynchronous reliable messaging and RPC library optimized for hardware acceleration";
license = licenses.bsd3;
platforms = with platforms; linux ++ freebsd;
maintainers = with maintainers; [ wkennington ];
};
}