rdma-core: set correct RUNDIR and SHAREDSTATEDIR

This commit is contained in:
Jörg Thalheim 2018-01-30 23:01:25 +00:00
parent 7c554c13ee
commit c208456d3a

View File

@ -18,9 +18,13 @@ in stdenv.mkDerivation {
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 '@CMAKE_INSTALL_FULL_SHAREDSTATEDIR@' '/run' \
--replace ethtool "${ethtool}/bin/ethtool" \
--replace ifconfig "${nettools}/bin/ifconfig"
'';