From c6b828b86eef331e26840e11da0114472c020beb Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Sat, 20 Jan 2018 15:09:14 -0800 Subject: rdma-core: init at 16.1 --- pkgs/os-specific/linux/rdma-core/default.nix | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/os-specific/linux/rdma-core/default.nix (limited to 'pkgs/os-specific/linux/rdma-core') diff --git a/pkgs/os-specific/linux/rdma-core/default.nix b/pkgs/os-specific/linux/rdma-core/default.nix new file mode 100644 index 0000000000000..22ce4a10f1c80 --- /dev/null +++ b/pkgs/os-specific/linux/rdma-core/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, cmake, pkgconfig +, ethtool, libnl, libudev, python, perl +} : + +let + version = "16.1"; + +in stdenv.mkDerivation { + name = "rdma-core-${version}"; + + src = fetchFromGitHub { + owner = "linux-rdma"; + repo = "rdma-core"; + rev = "v${version}"; + sha256 = "1fixw6hpf732vzlpczx0b2y84jrhgfjr3cljqxky7makzgh2s7ng"; + }; + + nativeBuildInputs = [ cmake pkgconfig ]; + buildInputs = [ libnl ethtool libudev python perl ]; + + postFixup = '' + substituteInPlace $out/bin/rxe_cfg --replace ethtool "${ethtool}/bin/ethtool" + ''; + + meta = with stdenv.lib; { + description = "RDMA Core Userspace Libraries and Daemons"; + homepage = https://github.com/linux-rdma/rdma-core; + license = licenses.gpl2; + maintainers = with maintainers; [ markuskowa ]; + }; +} + -- cgit 1.4.1