rdma-core: fix paths in rxe_cfg

This commit is contained in:
Markus Kowalewski 2018-01-28 01:09:22 -08:00
parent f381367603
commit dcdaea355a
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, ethtool, libnl, libudev, python, perl
, ethtool, nettools, libnl, libudev, python, perl
} :
let
@ -16,10 +16,13 @@ in stdenv.mkDerivation {
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ libnl ethtool libudev python perl ];
buildInputs = [ libnl ethtool nettools libudev python perl ];
postFixup = ''
substituteInPlace $out/bin/rxe_cfg --replace ethtool "${ethtool}/bin/ethtool"
postPatch = ''
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; {