2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
|
2017-01-03 05:56:47 +00:00
|
|
|
, openssl, libpcap, odp-dpdk, dpdk
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ofp";
|
2017-01-03 05:56:47 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenFastPath";
|
|
|
|
repo = "ofp";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2017-01-03 05:56:47 +00:00
|
|
|
sha256 = "05902593fycgkwzk5g7wzgk0k40nrrgybplkdka3rqnlj6aydhqf";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2017-01-03 05:56:47 +00:00
|
|
|
buildInputs = [ openssl libpcap odp-dpdk dpdk ];
|
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac --replace m4_esyscmd m4_esyscmd_s
|
2019-01-15 22:41:31 +00:00
|
|
|
substituteInPlace scripts/git_hash.sh --replace /bin/bash ${stdenv.shell}
|
2017-01-03 05:56:47 +00:00
|
|
|
echo ${version} > .scmversion
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-odp=${odp-dpdk}"
|
|
|
|
"--with-odp-lib=odp-dpdk"
|
|
|
|
"--disable-shared"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-03 05:56:47 +00:00
|
|
|
description = "High performance TCP/IP stack";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.openfastpath.org";
|
2017-01-03 05:56:47 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = [ maintainers.abuibrahim ];
|
2017-09-09 02:33:13 +01:00
|
|
|
broken = true;
|
2017-01-03 05:56:47 +00:00
|
|
|
};
|
|
|
|
}
|