rdma-core: 24.0 -> 25.0
This commit is contained in:
parent
347a5d9275
commit
9c22baeeed
@ -1,9 +1,10 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, pandoc
|
||||
, ethtool, iproute, libnl, udev, python, perl
|
||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, docutils
|
||||
, pandoc, ethtool, iproute, libnl, udev, python, perl
|
||||
, makeWrapper
|
||||
} :
|
||||
|
||||
let
|
||||
version = "24.0";
|
||||
version = "25.0";
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
name = "rdma-core-${version}";
|
||||
@ -12,10 +13,10 @@ in stdenv.mkDerivation {
|
||||
owner = "linux-rdma";
|
||||
repo = "rdma-core";
|
||||
rev = "v${version}";
|
||||
sha256 = "038msip4fnd8fh6m0vhnqwsaarp86dbnc9hvf5n19aqhlqbabbdc";
|
||||
sha256 = "1r1gfps1xckky06ib1rbf6lp58v2jqpy1ipkr45rf55gpaxf93cj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig pandoc ];
|
||||
nativeBuildInputs = [ cmake pkgconfig pandoc docutils makeWrapper ];
|
||||
buildInputs = [ libnl ethtool iproute udev python perl ];
|
||||
|
||||
cmakeFlags = [
|
||||
@ -28,6 +29,22 @@ in stdenv.mkDerivation {
|
||||
--replace ethtool "${ethtool}/bin/ethtool" \
|
||||
--replace 'ip addr' "${iproute}/bin/ip addr" \
|
||||
--replace 'ip link' "${iproute}/bin/ip link"
|
||||
|
||||
substituteInPlace srp_daemon/srp_daemon.sh.in \
|
||||
--replace /bin/rm rm
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
# cmake script is buggy, move file manually
|
||||
mkdir -p $out/${perl.libPrefix}
|
||||
mv $out/share/perl5/* $out/${perl.libPrefix}
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
for pls in $out/bin/{ibfindnodesusing.pl,ibidsverify.pl}; do
|
||||
echo "wrapping $pls"
|
||||
wrapProgram $pls --prefix PERL5LIB : "$out/${perl.libPrefix}"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user