From c208456d3aaf9b290a477c6ba415ef38556f3443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 30 Jan 2018 23:01:25 +0000 Subject: [PATCH] rdma-core: set correct RUNDIR and SHAREDSTATEDIR --- pkgs/os-specific/linux/rdma-core/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/rdma-core/default.nix b/pkgs/os-specific/linux/rdma-core/default.nix index 5e697bcbb5f7..77f94e544a07 100644 --- a/pkgs/os-specific/linux/rdma-core/default.nix +++ b/pkgs/os-specific/linux/rdma-core/default.nix @@ -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" '';