rdma-core: fix paths in rxe_cfg
This commit is contained in:
parent
f381367603
commit
dcdaea355a
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
||||||
, ethtool, libnl, libudev, python, perl
|
, ethtool, nettools, libnl, libudev, python, perl
|
||||||
} :
|
} :
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -16,10 +16,13 @@ in stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
buildInputs = [ libnl ethtool libudev python perl ];
|
buildInputs = [ libnl ethtool nettools libudev python perl ];
|
||||||
|
|
||||||
postFixup = ''
|
postPatch = ''
|
||||||
substituteInPlace $out/bin/rxe_cfg --replace ethtool "${ethtool}/bin/ethtool"
|
substituteInPlace providers/rxe/rxe_cfg.in \
|
||||||
|
--replace '@CMAKE_INSTALL_FULL_SHAREDSTATEDIR@' '/run' \
|
||||||
|
--replace ethtool "${ethtool}/bin/ethtool" \
|
||||||
|
--replace ifconfig "${nettools}/bin/ifconfig"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user