2018-05-19 13:44:15 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig
|
|
|
|
, dpdk, libconfig, libpcap, numactl, openssl
|
|
|
|
}:
|
2016-06-10 02:45:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "odp-dpdk-${version}";
|
2018-05-19 13:44:15 +00:00
|
|
|
version = "1.19.0.0_DPDK_17.11";
|
2016-06-10 02:45:46 +00:00
|
|
|
|
2018-05-19 13:44:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.linaro.org/lng/odp-dpdk.git/snapshot/${name}.tar.gz";
|
|
|
|
sha256 = "05bwjaxl9hqc6fbkp95nniq11g3kvzmlxw0bq55i7p2v35nv38px";
|
2016-06-10 02:45:46 +00:00
|
|
|
};
|
|
|
|
|
2018-05-19 13:44:15 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ dpdk libconfig libpcap numactl openssl ];
|
2016-06-10 02:45:46 +00:00
|
|
|
|
2018-05-21 01:04:31 +00:00
|
|
|
RTE_SDK = "${dpdk}/share/dpdk";
|
2016-06-10 02:45:46 +00:00
|
|
|
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-shared"
|
2018-05-19 13:44:15 +00:00
|
|
|
"--with-dpdk-path=${dpdk}"
|
2017-09-08 00:56:13 +00:00
|
|
|
];
|
|
|
|
|
2016-06-10 02:45:46 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Open Data Plane optimized for DPDK";
|
2018-06-23 11:34:55 +00:00
|
|
|
homepage = https://www.opendataplane.org;
|
2016-06-10 02:45:46 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.abuibrahim ];
|
|
|
|
};
|
|
|
|
}
|