diff options
author | Markus Kowalewski <markus.kowalewski@gmail.com> | 2018-01-28 01:09:22 -0800 |
---|---|---|
committer | Markus Kowalewski <markus.kowalewski@gmail.com> | 2018-01-29 22:05:45 -0800 |
commit | dcdaea355ad5b44dbb0b9929c21d83c247d77ac0 (patch) | |
tree | d0bb80b5699ac03031da7d294e74f627d77f9613 /pkgs/os-specific/linux/rdma-core | |
parent | f38136760383e74f2197824c2c09a7070b28c02b (diff) |
rdma-core: fix paths in rxe_cfg
Diffstat (limited to 'pkgs/os-specific/linux/rdma-core')
-rw-r--r-- | pkgs/os-specific/linux/rdma-core/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/rdma-core/default.nix b/pkgs/os-specific/linux/rdma-core/default.nix index 22ce4a10f1c80..a7cf884a854b6 100644 --- a/pkgs/os-specific/linux/rdma-core/default.nix +++ b/pkgs/os-specific/linux/rdma-core/default.nix @@ -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; { |