at 18.03-beta 40 lines 1.0 kB view raw
1{ stdenv, fetchFromGitHub, cmake, pkgconfig 2, ethtool, nettools, libnl, libudev, python, perl 3} : 4 5let 6 version = "17"; 7 8in stdenv.mkDerivation { 9 name = "rdma-core-${version}"; 10 11 src = fetchFromGitHub { 12 owner = "linux-rdma"; 13 repo = "rdma-core"; 14 rev = "v${version}"; 15 sha256 = "1xql46favv8i4ni4zqkk9ra2kcqq2dyn7jyi940c869lndmjw9ni"; 16 }; 17 18 nativeBuildInputs = [ cmake pkgconfig ]; 19 buildInputs = [ libnl ethtool nettools libudev python perl ]; 20 21 cmakeFlags = [ 22 "-DCMAKE_INSTALL_RUNDIR=/run" 23 "-DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib" 24 ]; 25 26 postPatch = '' 27 substituteInPlace providers/rxe/rxe_cfg.in \ 28 --replace ethtool "${ethtool}/bin/ethtool" \ 29 --replace ifconfig "${nettools}/bin/ifconfig" 30 ''; 31 32 meta = with stdenv.lib; { 33 description = "RDMA Core Userspace Libraries and Daemons"; 34 homepage = https://github.com/linux-rdma/rdma-core; 35 license = licenses.gpl2; 36 platforms = platforms.linux; 37 maintainers = with maintainers; [ markuskowa ]; 38 }; 39} 40