nixpkgs/pkgs/os-specific/linux/rdma-core/default.nix
R. RyanTM f6e96c3be4 rdma-core: 23.1 -> 24.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/rdma-core/versions
2019-06-02 19:01:01 -07:00

41 lines
1.0 KiB
Nix

{ stdenv, fetchFromGitHub, cmake, pkgconfig, pandoc
, ethtool, iproute, libnl, udev, python, perl
} :
let
version = "24.0";
in stdenv.mkDerivation {
name = "rdma-core-${version}";
src = fetchFromGitHub {
owner = "linux-rdma";
repo = "rdma-core";
rev = "v${version}";
sha256 = "038msip4fnd8fh6m0vhnqwsaarp86dbnc9hvf5n19aqhlqbabbdc";
};
nativeBuildInputs = [ cmake pkgconfig pandoc ];
buildInputs = [ libnl ethtool iproute udev python perl ];
cmakeFlags = [
"-DCMAKE_INSTALL_RUNDIR=/run"
"-DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib"
];
postPatch = ''
substituteInPlace providers/rxe/rxe_cfg.in \
--replace ethtool "${ethtool}/bin/ethtool" \
--replace 'ip addr' "${iproute}/bin/ip addr" \
--replace 'ip link' "${iproute}/bin/ip link"
'';
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 ];
};
}