nixpkgs/pkgs/os-specific/linux/ofp/default.nix

42 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
2017-01-03 06:56:47 +01:00
, openssl, libpcap, odp-dpdk, dpdk
}:
stdenv.mkDerivation rec {
pname = "ofp";
2017-01-03 06:56:47 +01:00
version = "2.0.0";
src = fetchFromGitHub {
owner = "OpenFastPath";
repo = "ofp";
2019-09-09 01:38:31 +02:00
rev = version;
2017-01-03 06:56:47 +01:00
sha256 = "05902593fycgkwzk5g7wzgk0k40nrrgybplkdka3rqnlj6aydhqf";
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
2017-01-03 06:56:47 +01:00
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 ${stdenv.shell}
2017-01-03 06:56:47 +01:00
echo ${version} > .scmversion
'';
configureFlags = [
"--with-odp=${odp-dpdk}"
"--with-odp-lib=odp-dpdk"
"--disable-shared"
];
meta = with lib; {
2017-01-03 06:56:47 +01:00
description = "High performance TCP/IP stack";
homepage = "http://www.openfastpath.org";
2017-01-03 06:56:47 +01:00
license = licenses.bsd3;
platforms = [ "x86_64-linux" ];
maintainers = [ maintainers.abuibrahim ];
broken = true;
2017-01-03 06:56:47 +01:00
};
}