2014-10-08 08:26:36 +00:00
|
|
|
{ stdenv, fetchurl, libibverbs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-11-28 07:13:23 +00:00
|
|
|
name = "librdmacm-${version}";
|
2018-02-27 04:59:19 +00:00
|
|
|
version = "1.1.0";
|
2014-10-08 08:26:36 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.openfabrics.org/downloads/rdmacm/${name}.tar.gz";
|
2018-02-27 04:59:19 +00:00
|
|
|
sha256 = "1ic0qd5ayvkybh4pxc5qx7sqvny1fv4anhxlf1nmsn0h926q844g";
|
2014-10-08 08:26:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libibverbs ];
|
|
|
|
|
2016-11-28 07:13:23 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/lib/pkgconfig
|
|
|
|
cat >$out/lib/pkgconfig/rdmacm.pc <<EOF
|
|
|
|
prefix=$out
|
|
|
|
exec_prefix=\''${prefix}
|
|
|
|
libdir=\''${exec_prefix}/lib
|
|
|
|
includedir=\''${prefix}/include
|
|
|
|
|
|
|
|
Name: RDMA library
|
|
|
|
Version: ${version}
|
|
|
|
Description: Library for managing RDMA connections
|
|
|
|
Libs: -L\''${libdir} -lrdmacm
|
|
|
|
Cflags: -I\''${includedir}
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2014-10-08 08:26:36 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.openfabrics.org/;
|
2015-04-20 21:44:53 +00:00
|
|
|
platforms = with platforms; linux ++ freebsd;
|
2014-10-08 08:26:36 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|