tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ofp: init at 2.0.0
Ruslan Babayev
9 years ago
f3e2feb0
3ac20e92
+42
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
ofp
default.nix
top-level
all-packages.nix
+40
pkgs/os-specific/linux/ofp/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
2
2
+
, openssl, libpcap, odp-dpdk, dpdk
3
3
+
}:
4
4
+
5
5
+
stdenv.mkDerivation rec {
6
6
+
name = "ofp-${version}";
7
7
+
version = "2.0.0";
8
8
+
9
9
+
src = fetchFromGitHub {
10
10
+
owner = "OpenFastPath";
11
11
+
repo = "ofp";
12
12
+
rev = "${version}";
13
13
+
sha256 = "05902593fycgkwzk5g7wzgk0k40nrrgybplkdka3rqnlj6aydhqf";
14
14
+
};
15
15
+
16
16
+
nativeBuildInputs = [ pkgconfig autoreconfHook ];
17
17
+
buildInputs = [ openssl libpcap odp-dpdk dpdk ];
18
18
+
19
19
+
dontDisableStatic = true;
20
20
+
21
21
+
postPatch = ''
22
22
+
substituteInPlace configure.ac --replace m4_esyscmd m4_esyscmd_s
23
23
+
substituteInPlace scripts/git_hash.sh --replace /bin/bash /bin/sh
24
24
+
echo ${version} > .scmversion
25
25
+
'';
26
26
+
27
27
+
configureFlags = [
28
28
+
"--with-odp=${odp-dpdk}"
29
29
+
"--with-odp-lib=odp-dpdk"
30
30
+
"--disable-shared"
31
31
+
];
32
32
+
33
33
+
meta = with stdenv.lib; {
34
34
+
description = "High performance TCP/IP stack";
35
35
+
homepage = http://www.openfastpath.org;
36
36
+
license = licenses.bsd3;
37
37
+
platforms = [ "x86_64-linux" ];
38
38
+
maintainers = [ maintainers.abuibrahim ];
39
39
+
};
40
40
+
}
+2
pkgs/top-level/all-packages.nix
···
11197
11197
11198
11198
odp-dpdk = callPackage ../os-specific/linux/odp-dpdk { };
11199
11199
11200
11200
+
ofp = callPackage ../os-specific/linux/ofp { };
11201
11201
+
11200
11202
e1000e = callPackage ../os-specific/linux/e1000e {};
11201
11203
11202
11204
ixgbevf = callPackage ../os-specific/linux/ixgbevf {};