2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, dpdk
|
|
|
|
, libbpf
|
|
|
|
, libconfig
|
|
|
|
, libpcap
|
|
|
|
, numactl
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, libbsd
|
|
|
|
, libelf
|
|
|
|
, jansson
|
2023-04-12 12:48:02 +00:00
|
|
|
, libnl
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "odp-dpdk";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.41.0.0_DPDK_22.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.linaro.org/lng/odp-dpdk.git/snapshot/${pname}-${version}.tar.gz";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-4p+R+7IeDKQFqBzQTvXfR407exxhoS8pnKxF9Qnr8tw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
dpdk
|
2020-04-24 23:36:52 +00:00
|
|
|
libconfig
|
|
|
|
libpcap
|
|
|
|
numactl
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
libbsd
|
|
|
|
libelf
|
|
|
|
jansson
|
2021-05-28 09:39:13 +00:00
|
|
|
libbpf
|
2023-04-12 12:48:02 +00:00
|
|
|
libnl
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2023-02-16 17:41:37 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=maybe-uninitialized"
|
|
|
|
"-Wno-error=uninitialized"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# binaries will segfault otherwise
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open Data Plane optimized for DPDK";
|
|
|
|
homepage = "https://www.opendataplane.org";
|
|
|
|
license = licenses.bsd3;
|
2022-05-18 14:49:53 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.abuibrahim ];
|
|
|
|
};
|
|
|
|
}
|