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-09-08 02:56:13 +02:00
|
|
|
version = "1.15.0.0";
|
2016-06-10 04:45:46 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.linaro.org/lng/odp-dpdk.git";
|
2017-09-08 02:56:13 +02:00
|
|
|
rev = "d8533b4e575d62c9f6f2caedd38d98a1a56fb8d3";
|
|
|
|
sha256 = "1p09rw7dxxqcxxrdb8wbwp2imapyjvdbvap7s9km2i9hbd8ipdif";
|
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 = [
|
|
|
|
"--disable-shared"
|
|
|
|
"--with-sdk-install-path=${dpdk}/${RTE_TARGET}"
|
|
|
|
];
|
|
|
|
|
2017-09-08 02:56:13 +02:00
|
|
|
patches = [
|
|
|
|
./configure.patch
|
|
|
|
./odp_crypto.patch
|
|
|
|
];
|
|
|
|
|
2016-06-10 04:45:46 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|