rdma-core: add iproute to rxe_cfg tool

The rxe_cfg script switched from ifconfig
to iproute utility (ip).
This commit is contained in:
Markus Kowalewski 2018-11-18 16:37:03 +01:00
parent a3ffea5130
commit 8dc5ceac79
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, pandoc { stdenv, fetchFromGitHub, cmake, pkgconfig, pandoc
, ethtool, nettools, libnl, udev, python, perl , ethtool, iproute, libnl, udev, python, perl
} : } :
let let
@ -16,7 +16,7 @@ in stdenv.mkDerivation {
}; };
nativeBuildInputs = [ cmake pkgconfig pandoc ]; nativeBuildInputs = [ cmake pkgconfig pandoc ];
buildInputs = [ libnl ethtool nettools udev python perl ]; buildInputs = [ libnl ethtool iproute udev python perl ];
cmakeFlags = [ cmakeFlags = [
"-DCMAKE_INSTALL_RUNDIR=/run" "-DCMAKE_INSTALL_RUNDIR=/run"
@ -26,7 +26,8 @@ in stdenv.mkDerivation {
postPatch = '' postPatch = ''
substituteInPlace providers/rxe/rxe_cfg.in \ substituteInPlace providers/rxe/rxe_cfg.in \
--replace ethtool "${ethtool}/bin/ethtool" \ --replace ethtool "${ethtool}/bin/ethtool" \
--replace ifconfig "${nettools}/bin/ifconfig" --replace 'ip addr' "${iproute}/bin/ip addr" \
--replace 'ip link' "${iproute}/bin/ip link"
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {