From e797cfaeb642633ecabeed5366e7fb3b743c2d75 Mon Sep 17 00:00:00 2001 From: montag451 Date: Mon, 28 Nov 2016 08:13:23 +0100 Subject: [PATCH] librdmacm: add pkg-config support --- .../libraries/librdmacm/default.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/librdmacm/default.nix b/pkgs/development/libraries/librdmacm/default.nix index 2b8720357a1..791e59cbc90 100644 --- a/pkgs/development/libraries/librdmacm/default.nix +++ b/pkgs/development/libraries/librdmacm/default.nix @@ -1,7 +1,8 @@ { stdenv, fetchurl, libibverbs }: stdenv.mkDerivation rec { - name = "librdmacm-1.0.21"; + name = "librdmacm-${version}"; + version = "1.0.21"; src = fetchurl { url = "https://www.openfabrics.org/downloads/rdmacm/${name}.tar.gz"; @@ -10,6 +11,22 @@ stdenv.mkDerivation rec { buildInputs = [ libibverbs ]; + postInstall = '' + mkdir -p $out/lib/pkgconfig + cat >$out/lib/pkgconfig/rdmacm.pc <