git.iko.soy/typeable/nixpkgs
on master help sign in
rdma-core: add iproute to rxe_cfg tool

The rxe_cfg script switched from ifconfig to iproute utility (ip).

commit8dc5ceac7986b04361f0878334fe62b2d7e1699b authorMarkus Kowalewski <markus.kowalewski@gmail.com> dateSun 18 Nov 2018, 16:37 (8 years ago) parenta3ffea5
1 file changed+4−3
pkgs/os-specific/linux/rdma-core/default.nix+4−3
pkgs/os-specific/linux/rdma-core/default.nix+4−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, cmake, pkgconfig, pandoc
2−, ethtool, nettools, libnl, udev, python, perl
2+, ethtool, iproute, libnl, udev, python, perl
33} :
44
55let
@@ -16,7 +16,7 @@ in stdenv.mkDerivation {
1616 };
1717
1818 nativeBuildInputs = [ cmake pkgconfig pandoc ];
19− buildInputs = [ libnl ethtool nettools udev python perl ];
19+ buildInputs = [ libnl ethtool iproute udev python perl ];
2020
2121 cmakeFlags = [
2222 "-DCMAKE_INSTALL_RUNDIR=/run"
@@ -26,7 +26,8 @@ in stdenv.mkDerivation {
2626 postPatch = ''
2727 substituteInPlace providers/rxe/rxe_cfg.in \
2828 --replace ethtool "${ethtool}/bin/ethtool" \
29− --replace ifconfig "${nettools}/bin/ifconfig"
29+ --replace 'ip addr' "${iproute}/bin/ip addr" \
30+ --replace 'ip link' "${iproute}/bin/ip link"
3031 '';
3132
3233 meta = with stdenv.lib; {