mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 10:00:56 +00:00
78b0abe442
Semi-automatic update. These checks were performed: - built on NixOS - found 1.1.0 with grep in /nix/store/hwzkcif6mzrqmza14s4qjx2z3nllvih4-librdmacm-1.1.0 - found 1.1.0 in filename of file in /nix/store/hwzkcif6mzrqmza14s4qjx2z3nllvih4-librdmacm-1.1.0 cc "@wkennington"
37 lines
920 B
Nix
37 lines
920 B
Nix
{ stdenv, fetchurl, libibverbs }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "librdmacm-${version}";
|
|
version = "1.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.openfabrics.org/downloads/rdmacm/${name}.tar.gz";
|
|
sha256 = "1ic0qd5ayvkybh4pxc5qx7sqvny1fv4anhxlf1nmsn0h926q844g";
|
|
};
|
|
|
|
buildInputs = [ libibverbs ];
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.openfabrics.org/;
|
|
platforms = with platforms; linux ++ freebsd;
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|