mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
41 lines
1013 B
Nix
41 lines
1013 B
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
|
, ethtool, nettools, libnl, libudev, python, perl
|
|
} :
|
|
|
|
let
|
|
version = "17";
|
|
|
|
in stdenv.mkDerivation {
|
|
name = "rdma-core-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linux-rdma";
|
|
repo = "rdma-core";
|
|
rev = "v${version}";
|
|
sha256 = "1xql46favv8i4ni4zqkk9ra2kcqq2dyn7jyi940c869lndmjw9ni";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
buildInputs = [ libnl ethtool nettools libudev python perl ];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_INSTALL_RUNDIR=/run"
|
|
"-DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace providers/rxe/rxe_cfg.in \
|
|
--replace ethtool "${ethtool}/bin/ethtool" \
|
|
--replace ifconfig "${nettools}/bin/ifconfig"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "RDMA Core Userspace Libraries and Daemons";
|
|
homepage = https://github.com/linux-rdma/rdma-core;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
};
|
|
}
|
|
|