1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/libraries/librdmacm/default.nix

37 lines
921 B
Nix
Raw Normal View History

2014-10-08 09:26:36 +01:00
{ stdenv, fetchurl, libibverbs }:
stdenv.mkDerivation rec {
2016-11-28 07:13:23 +00:00
name = "librdmacm-${version}";
version = "1.0.21";
2014-10-08 09:26:36 +01:00
src = fetchurl {
url = "https://www.openfabrics.org/downloads/rdmacm/${name}.tar.gz";
2015-06-23 19:37:50 +01:00
sha256 = "0yx2wr5dvmf5apvc4f4r2f2mlvn05piwvxsqfb60p3rk4jfx56dx";
2014-10-08 09:26:36 +01: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 09:26:36 +01:00
meta = with stdenv.lib; {
homepage = https://www.openfabrics.org/;
2015-04-20 22:44:53 +01:00
platforms = with platforms; linux ++ freebsd;
2014-10-08 09:26:36 +01:00
license = licenses.bsd2;
maintainers = with maintainers; [ wkennington ];
};
}