1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

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"
'';