9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
|
|
, openssl, libpcap, odp-dpdk, dpdk
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ofp";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenFastPath";
|
|
repo = "ofp";
|
|
rev = version;
|
|
sha256 = "05902593fycgkwzk5g7wzgk0k40nrrgybplkdka3rqnlj6aydhqf";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config 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 ${stdenv.shell}
|
|
echo ${version} > .scmversion
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-odp=${odp-dpdk}"
|
|
"--with-odp-lib=odp-dpdk"
|
|
"--disable-shared"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "High performance TCP/IP stack";
|
|
homepage = "http://www.openfastpath.org";
|
|
license = licenses.bsd3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = [ maintainers.abuibrahim ];
|
|
broken = true;
|
|
};
|
|
}
|