Merge pull request #34093 from markuskowa/rdma-core-pr
rdma-core: init at 16.1
This commit is contained in:
commit
7f1c5a124c
3 changed files with 36 additions and 2 deletions
|
@ -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 ];
|
||||
|
||||
|
|
32
pkgs/os-specific/linux/rdma-core/default.nix
Normal file
32
pkgs/os-specific/linux/rdma-core/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
@ -4327,6 +4327,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 { };
|
||||
|
|
Loading…
Reference in a new issue