mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #16112 from abuibrahim/master
odp-dpdk: init at 1.8.0.0
This commit is contained in:
commit
6a3dcb70bc
2 changed files with 42 additions and 0 deletions
40
pkgs/os-specific/linux/odp-dpdk/default.nix
Normal file
40
pkgs/os-specific/linux/odp-dpdk/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, fetchgit, autoreconfHook, openssl, libpcap, dpdk, bash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "odp-dpdk-${version}";
|
||||
version = "1.8.0.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.linaro.org/lng/odp-dpdk.git";
|
||||
rev = "438a207a39bad213cdc03929452a8199caef5d8c";
|
||||
sha256 = "0k4g5zbirbfdcgqz0nbn9san66y178qnigyvrr2apj3apzjjy7zv";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook bash ];
|
||||
buildInputs = [ stdenv openssl dpdk libpcap ];
|
||||
|
||||
RTE_SDK = "${dpdk}";
|
||||
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace scripts/git_hash.sh --replace /bin/bash /bin/sh
|
||||
echo -n ${version} > .scmversion
|
||||
'';
|
||||
|
||||
dontDisableStatic = true;
|
||||
|
||||
configureFlags = [
|
||||
"--with-platform=linux-dpdk"
|
||||
"--disable-shared"
|
||||
"--disable-shared-dpdk"
|
||||
"--with-sdk-install-path=${dpdk}/${RTE_TARGET}"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Open Data Plane optimized for DPDK";
|
||||
homepage = http://www.opendataplane.org;
|
||||
license = licenses.bsd3;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = [ maintainers.abuibrahim ];
|
||||
};
|
||||
}
|
|
@ -10863,6 +10863,8 @@ in
|
|||
|
||||
pktgen = callPackage ../os-specific/linux/pktgen { };
|
||||
|
||||
odp-dpdk = callPackage ../os-specific/linux/odp-dpdk { };
|
||||
|
||||
e1000e = callPackage ../os-specific/linux/e1000e {};
|
||||
|
||||
v4l2loopback = callPackage ../os-specific/linux/v4l2loopback { };
|
||||
|
|
Loading…
Reference in a new issue