2018-05-19 14:44:15 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig
|
|
|
|
, dpdk, libconfig, libpcap, numactl, openssl
|
2019-08-07 07:05:34 +01:00
|
|
|
}: let
|
2016-06-10 03:45:46 +01:00
|
|
|
|
2019-08-07 07:05:34 +01:00
|
|
|
dpdk_17_11 = dpdk.overrideAttrs (old: rec {
|
2019-11-17 01:17:24 +00:00
|
|
|
version = "17.11.9";
|
2019-08-07 07:05:34 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
|
2019-11-17 01:17:24 +00:00
|
|
|
sha256 = "0vrcc9mdjs5fk69lh7bigsk9208dfmjsz3jxaddkjlvk2hds1id6";
|
2019-08-07 07:05:34 +01:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "odp-dpdk";
|
2018-05-19 14:44:15 +01:00
|
|
|
version = "1.19.0.0_DPDK_17.11";
|
2016-06-10 03:45:46 +01:00
|
|
|
|
2018-05-19 14:44:15 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://git.linaro.org/lng/odp-dpdk.git/snapshot/${pname}-${version}.tar.gz";
|
2018-05-19 14:44:15 +01:00
|
|
|
sha256 = "05bwjaxl9hqc6fbkp95nniq11g3kvzmlxw0bq55i7p2v35nv38px";
|
2016-06-10 03:45:46 +01:00
|
|
|
};
|
|
|
|
|
2018-05-19 14:44:15 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
2019-08-07 07:05:34 +01:00
|
|
|
buildInputs = [ dpdk_17_11 libconfig libpcap numactl openssl ];
|
2016-06-10 03:45:46 +01:00
|
|
|
|
2019-08-07 07:05:34 +01:00
|
|
|
RTE_SDK = "${dpdk_17_11}/share/dpdk";
|
2016-06-10 03:45:46 +01:00
|
|
|
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-shared"
|
2019-08-07 07:05:34 +01:00
|
|
|
"--with-dpdk-path=${dpdk_17_11}"
|
2017-09-08 01:56:13 +01:00
|
|
|
];
|
|
|
|
|
2016-06-10 03:45:46 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Open Data Plane optimized for DPDK";
|
2018-06-23 12:34:55 +01:00
|
|
|
homepage = https://www.opendataplane.org;
|
2016-06-10 03:45:46 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.abuibrahim ];
|
|
|
|
};
|
|
|
|
}
|