forked from mirrors/nixpkgs
Merge pull request #34407 from markuskowa/rdma-core-fix-pr
rdma-core: fix rxe_cfg and platforms flags
This commit is contained in:
commit
5877b811d4
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
||||
, ethtool, libnl, libudev, python, perl
|
||||
, ethtool, nettools, libnl, libudev, python, perl
|
||||
} :
|
||||
|
||||
let
|
||||
|
@ -16,16 +16,24 @@ 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"
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_INSTALL_RUNDIR=/run"
|
||||
"-DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace providers/rxe/rxe_cfg.in \
|
||||
--replace ethtool "${ethtool}/bin/ethtool" \
|
||||
--replace ifconfig "${nettools}/bin/ifconfig"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "RDMA Core Userspace Libraries and Daemons";
|
||||
homepage = https://github.com/linux-rdma/rdma-core;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ markuskowa ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue