tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
librdmacm: add pkg-config support
montag451
9 years ago
e797cfae
3798da2c
+18
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
librdmacm
default.nix
+18
-1
pkgs/development/libraries/librdmacm/default.nix
···
1
{ stdenv, fetchurl, libibverbs }:
2
3
stdenv.mkDerivation rec {
4
-
name = "librdmacm-1.0.21";
0
5
6
src = fetchurl {
7
url = "https://www.openfabrics.org/downloads/rdmacm/${name}.tar.gz";
···
9
};
10
11
buildInputs = [ libibverbs ];
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
12
13
meta = with stdenv.lib; {
14
homepage = https://www.openfabrics.org/;
···
1
{ stdenv, fetchurl, libibverbs }:
2
3
stdenv.mkDerivation rec {
4
+
name = "librdmacm-${version}";
5
+
version = "1.0.21";
6
7
src = fetchurl {
8
url = "https://www.openfabrics.org/downloads/rdmacm/${name}.tar.gz";
···
10
};
11
12
buildInputs = [ libibverbs ];
13
+
14
+
postInstall = ''
15
+
mkdir -p $out/lib/pkgconfig
16
+
cat >$out/lib/pkgconfig/rdmacm.pc <<EOF
17
+
prefix=$out
18
+
exec_prefix=\''${prefix}
19
+
libdir=\''${exec_prefix}/lib
20
+
includedir=\''${prefix}/include
21
+
22
+
Name: RDMA library
23
+
Version: ${version}
24
+
Description: Library for managing RDMA connections
25
+
Libs: -L\''${libdir} -lrdmacm
26
+
Cflags: -I\''${includedir}
27
+
EOF
28
+
'';
29
30
meta = with stdenv.lib; {
31
homepage = https://www.openfabrics.org/;