2016-09-03 20:10:46 +02:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, openssl, libpcap, dpdk }:
|
2016-06-10 04:45:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "odp-dpdk-${version}";
|
2017-01-01 01:23:47 +01:00
|
|
|
version = "1.12.0.0";
|
2016-06-10 04:45:46 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.linaro.org/lng/odp-dpdk.git";
|
2017-01-01 01:23:47 +01:00
|
|
|
rev = "5e370e1113973feafb43a8e57d4c59be40e9aeab";
|
|
|
|
sha256 = "0rrakbxnbsqaj148xaz2hwxjvg3cmzlynfkvcp8w56sqyly75d0n";
|
2016-06-10 04:45:46 +02:00
|
|
|
};
|
|
|
|
|
2016-09-03 20:10:46 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ openssl dpdk libpcap ];
|
2016-06-10 04:45:46 +02:00
|
|
|
|
|
|
|
RTE_SDK = "${dpdk}";
|
|
|
|
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-platform=linux-dpdk"
|
|
|
|
"--disable-shared"
|
|
|
|
"--with-sdk-install-path=${dpdk}/${RTE_TARGET}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Open Data Plane optimized for DPDK";
|
|
|
|
homepage = http://www.opendataplane.org;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.abuibrahim ];
|
|
|
|
};
|
|
|
|
}
|