nixpkgs/pkgs/os-specific/linux/odp-dpdk/default.nix
Joachim Fasting 65786ba322
odp-dpdk: 10.10.1.0 -> 2016-08-16
Fixes build against dpdk 16.06

Tested build against linux, linux_latest, linux_3_18, linux_4_1,
linux_4_6, linux_grsec_nixos, linux_chromiumos_3_18.

While this is pre-release, the delta since 10.10.1.0 seems to contain
primarily fixes or internal improvements.

Also cleanup build inputs while we're at it.
2016-09-03 21:20:52 +02:00

41 lines
1.1 KiB
Nix

{ stdenv, fetchgit, autoreconfHook, openssl, libpcap, dpdk }:
stdenv.mkDerivation rec {
name = "odp-dpdk-${version}";
version = "2016-08-16";
src = fetchgit {
url = "https://git.linaro.org/lng/odp-dpdk.git";
rev = "7068593f600e2b5a23ee1780d5c722c54e966df1";
sha256 = "0pz0zkxqaac193x21wmj3x88gfza6bvhmv5yf8fzkpm9zxnl2sy4";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ openssl dpdk libpcap ];
RTE_SDK = "${dpdk}";
RTE_TARGET = "x86_64-native-linuxapp-gcc";
patchPhase = ''
substituteInPlace scripts/git_hash.sh --replace /bin/bash /bin/sh
substituteInPlace scripts/get_impl_str.sh --replace /bin/bash /bin/sh
echo -n ${version} > .scmversion
'';
dontDisableStatic = true;
configureFlags = [
"--with-platform=linux-dpdk"
"--disable-shared"
"--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 ];
};
}