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:
parent
7c554c13ee
commit
c208456d3a
|
@ -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"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue