1{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
2, openssl, libpcap, odp-dpdk, dpdk
3}:
4
5stdenv.mkDerivation rec {
6 name = "ofp-${version}";
7 version = "2.0.0";
8
9 src = fetchFromGitHub {
10 owner = "OpenFastPath";
11 repo = "ofp";
12 rev = "${version}";
13 sha256 = "05902593fycgkwzk5g7wzgk0k40nrrgybplkdka3rqnlj6aydhqf";
14 };
15
16 nativeBuildInputs = [ pkgconfig autoreconfHook ];
17 buildInputs = [ openssl libpcap odp-dpdk dpdk ];
18
19 dontDisableStatic = true;
20
21 postPatch = ''
22 substituteInPlace configure.ac --replace m4_esyscmd m4_esyscmd_s
23 substituteInPlace scripts/git_hash.sh --replace /bin/bash /bin/sh
24 echo ${version} > .scmversion
25 '';
26
27 configureFlags = [
28 "--with-odp=${odp-dpdk}"
29 "--with-odp-lib=odp-dpdk"
30 "--disable-shared"
31 ];
32
33 meta = with stdenv.lib; {
34 description = "High performance TCP/IP stack";
35 homepage = http://www.openfastpath.org;
36 license = licenses.bsd3;
37 platforms = [ "x86_64-linux" ];
38 maintainers = [ maintainers.abuibrahim ];
39 broken = true;
40 };
41}