mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
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
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
||||||
, ethtool, libnl, libudev, python, perl
|
, ethtool, nettools, libnl, libudev, python, perl
|
||||||
} :
|
} :
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -16,16 +16,24 @@ in stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
buildInputs = [ libnl ethtool libudev python perl ];
|
buildInputs = [ libnl ethtool nettools libudev python perl ];
|
||||||
|
|
||||||
postFixup = ''
|
cmakeFlags = [
|
||||||
substituteInPlace $out/bin/rxe_cfg --replace ethtool "${ethtool}/bin/ethtool"
|
"-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; {
|
meta = with stdenv.lib; {
|
||||||
description = "RDMA Core Userspace Libraries and Daemons";
|
description = "RDMA Core Userspace Libraries and Daemons";
|
||||||
homepage = https://github.com/linux-rdma/rdma-core;
|
homepage = https://github.com/linux-rdma/rdma-core;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ markuskowa ];
|
maintainers = with maintainers; [ markuskowa ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user