mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
069cfb5899
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
40 lines
1021 B
Nix
40 lines
1021 B
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig, pandoc
|
|
, ethtool, nettools, libnl, udev, python, perl
|
|
} :
|
|
|
|
let
|
|
version = "20";
|
|
|
|
in stdenv.mkDerivation {
|
|
name = "rdma-core-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linux-rdma";
|
|
repo = "rdma-core";
|
|
rev = "v${version}";
|
|
sha256 = "1zz9r1zq9ql806sbyi7nrslx1d96hgd9zvdlzbv4j31m6kfmsyri";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig pandoc ];
|
|
buildInputs = [ libnl ethtool nettools 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 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 ];
|
|
};
|
|
}
|