summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarkus Kowalewski <markus.kowalewski@gmail.com>2018-01-20 15:09:14 -0800
committerMarkus Kowalewski <markus.kowalewski@gmail.com>2018-01-20 15:09:14 -0800
commitc6b828b86eef331e26840e11da0114472c020beb (patch)
tree12701c280ee703753748a5440086de70295727df
parentdb56407a976d61e86d246e3221f852ed104b65e9 (diff)
downloadnixlib-c6b828b86eef331e26840e11da0114472c020beb.tar
nixlib-c6b828b86eef331e26840e11da0114472c020beb.tar.gz
nixlib-c6b828b86eef331e26840e11da0114472c020beb.tar.bz2
nixlib-c6b828b86eef331e26840e11da0114472c020beb.tar.lz
nixlib-c6b828b86eef331e26840e11da0114472c020beb.tar.xz
nixlib-c6b828b86eef331e26840e11da0114472c020beb.tar.zst
nixlib-c6b828b86eef331e26840e11da0114472c020beb.zip
rdma-core: init at 16.1
-rw-r--r--pkgs/development/libraries/openmpi/default.nix4
-rw-r--r--pkgs/os-specific/linux/rdma-core/default.nix32
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 36 insertions, 2 deletions
diff --git a/pkgs/development/libraries/openmpi/default.nix b/pkgs/development/libraries/openmpi/default.nix
index 35d72c6cbecb..c2f79753bd19 100644
--- a/pkgs/development/libraries/openmpi/default.nix
+++ b/pkgs/development/libraries/openmpi/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, gfortran, perl, libibverbs
+{stdenv, fetchurl, gfortran, perl, rdma-core
 
 # Enable the Sun Grid Engine bindings
 , enableSGE ? false
@@ -21,7 +21,7 @@ in stdenv.mkDerivation rec {
   };
 
   buildInputs = [ gfortran ]
-    ++ optional (stdenv.isLinux || stdenv.isFreeBSD) libibverbs;
+    ++ optional (stdenv.isLinux || stdenv.isFreeBSD) rdma-core;
 
   nativeBuildInputs = [ perl ];
 
diff --git a/pkgs/os-specific/linux/rdma-core/default.nix b/pkgs/os-specific/linux/rdma-core/default.nix
new file mode 100644
index 000000000000..22ce4a10f1c8
--- /dev/null
+++ b/pkgs/os-specific/linux/rdma-core/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, cmake, pkgconfig
+, ethtool, libnl, libudev, python, perl
+} :
+
+let
+  version = "16.1";
+
+in stdenv.mkDerivation {
+  name = "rdma-core-${version}";
+
+  src = fetchFromGitHub {
+    owner = "linux-rdma";
+    repo = "rdma-core";
+    rev = "v${version}";
+    sha256 = "1fixw6hpf732vzlpczx0b2y84jrhgfjr3cljqxky7makzgh2s7ng";
+  };
+
+  nativeBuildInputs = [ cmake pkgconfig ];
+  buildInputs = [ libnl ethtool libudev python perl ];
+
+  postFixup = ''
+    substituteInPlace $out/bin/rxe_cfg --replace ethtool "${ethtool}/bin/ethtool"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "RDMA Core Userspace Libraries and Daemons";
+    homepage = https://github.com/linux-rdma/rdma-core;
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ markuskowa ];
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a7dedb007179..c4568d042a8a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4321,6 +4321,8 @@ with pkgs;
 
   rc = callPackage ../shells/rc { };
 
+  rdma-core = callPackage ../os-specific/linux/rdma-core { };
+
   read-edid = callPackage ../os-specific/linux/read-edid { };
 
   redir = callPackage ../tools/networking/redir { };