dpdk: add Mellanox support via rdma-core dependency

rdma-core contains libmlx4/libmlx5 which are required for DPDK to be
able to run using Mellanox NIC devices.

This has a non-trivial closure size impact (730M -> 941M) but the size
increase is almost entirely driven by adding systemd to the transitive
closure, which we should expect is present anyway on most NixOS systems.
So, in practice, this is expected to be close to no-op in size increase.
This commit is contained in:
Pierre Bourdon 2021-12-09 01:59:10 +01:00
parent 12d9a09d3c
commit d8ba6ecab9
No known key found for this signature in database
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -2,7 +2,7 @@
, kernel
, fetchurl
, pkg-config, meson, ninja
, libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap
, libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap, rdma-core
, doxygen, python3
, withExamples ? []
, shared ? false }:
@ -36,6 +36,7 @@ in stdenv.mkDerivation rec {
libpcap
numactl
openssl.dev
rdma-core
zlib
] ++ lib.optionals mod kernel.moduleBuildDependencies;