2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config
|
2021-05-24 08:52:11 +02:00
|
|
|
, dpdk, libbpf, libconfig, libpcap, numactl, openssl, zlib, libbsd, libelf, jansson
|
2019-08-07 08:05:34 +02:00
|
|
|
}: let
|
2021-05-24 08:52:11 +02:00
|
|
|
dpdk_19_11 = dpdk.overrideAttrs (old: rec {
|
|
|
|
version = "19.11";
|
2019-08-07 08:05:34 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
|
2021-05-24 08:52:11 +02:00
|
|
|
sha256 = "sha256-RnEzlohDZ3uxwna7dKNFiqfAAswh4pXFHjvWVJexEqs=";
|
2019-08-07 08:05:34 +02:00
|
|
|
};
|
2021-07-23 09:03:07 +02:00
|
|
|
mesonFlags = old.mesonFlags ++ [
|
|
|
|
"-Denable_docs=false"
|
|
|
|
];
|
2019-08-07 08:05:34 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "odp-dpdk";
|
2021-07-23 09:03:07 +02:00
|
|
|
version = "1.30.1.0_DPDK_19.11";
|
2016-06-10 04:45:46 +02:00
|
|
|
|
2018-05-19 15:44:15 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://git.linaro.org/lng/odp-dpdk.git/snapshot/${pname}-${version}.tar.gz";
|
2021-07-23 09:03:07 +02:00
|
|
|
sha256 = "sha256-R3PsqQiHlHPzIYYWTVEC7Ikg3KR5I0jWGgftDA9Jj1o=";
|
2016-06-10 04:45:46 +02:00
|
|
|
};
|
|
|
|
|
2019-11-10 02:06:11 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-11-10 02:06:11 +01:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2021-05-24 08:52:11 +02:00
|
|
|
dpdk_19_11
|
2019-11-10 02:06:11 +01:00
|
|
|
libconfig
|
|
|
|
libpcap
|
|
|
|
numactl
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
libbsd
|
|
|
|
libelf
|
|
|
|
jansson
|
2021-05-24 08:52:11 +02:00
|
|
|
libbpf
|
2019-11-10 02:06:11 +01:00
|
|
|
];
|
2016-06-10 04:45:46 +02:00
|
|
|
|
2019-11-10 02:06:11 +01:00
|
|
|
# binaries will segfault otherwise
|
|
|
|
dontStrip = true;
|
2017-09-08 02:56:13 +02:00
|
|
|
|
2019-12-23 08:02:28 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-06-10 04:45:46 +02:00
|
|
|
description = "Open Data Plane optimized for DPDK";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.opendataplane.org";
|
2016-06-10 04:45:46 +02:00
|
|
|
license = licenses.bsd3;
|
2019-11-10 02:06:11 +01:00
|
|
|
platforms = platforms.linux;
|
2016-06-10 04:45:46 +02:00
|
|
|
maintainers = [ maintainers.abuibrahim ];
|
|
|
|
};
|
|
|
|
}
|