mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
ofp: init at 2.0.0
This commit is contained in:
parent
3ac20e92e8
commit
f3e2feb057
2 changed files with 42 additions and 0 deletions
40
pkgs/os-specific/linux/ofp/default.nix
Normal file
40
pkgs/os-specific/linux/ofp/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook
|
||||
, openssl, libpcap, odp-dpdk, dpdk
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ofp-${version}";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenFastPath";
|
||||
repo = "ofp";
|
||||
rev = "${version}";
|
||||
sha256 = "05902593fycgkwzk5g7wzgk0k40nrrgybplkdka3rqnlj6aydhqf";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||
buildInputs = [ openssl libpcap odp-dpdk dpdk ];
|
||||
|
||||
dontDisableStatic = true;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace configure.ac --replace m4_esyscmd m4_esyscmd_s
|
||||
substituteInPlace scripts/git_hash.sh --replace /bin/bash /bin/sh
|
||||
echo ${version} > .scmversion
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-odp=${odp-dpdk}"
|
||||
"--with-odp-lib=odp-dpdk"
|
||||
"--disable-shared"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "High performance TCP/IP stack";
|
||||
homepage = http://www.openfastpath.org;
|
||||
license = licenses.bsd3;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = [ maintainers.abuibrahim ];
|
||||
};
|
||||
}
|
|
@ -11197,6 +11197,8 @@ in
|
|||
|
||||
odp-dpdk = callPackage ../os-specific/linux/odp-dpdk { };
|
||||
|
||||
ofp = callPackage ../os-specific/linux/ofp { };
|
||||
|
||||
e1000e = callPackage ../os-specific/linux/e1000e {};
|
||||
|
||||
ixgbevf = callPackage ../os-specific/linux/ixgbevf {};
|
||||
|
|
Loading…
Reference in a new issue