mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
ofp-dpdk: use dpdk 17.11.6 LTS
This commit is contained in:
parent
7c534798a6
commit
fde6c31f75
1 changed files with 13 additions and 5 deletions
|
@ -1,8 +1,16 @@
|
|||
{ stdenv, fetchurl, autoreconfHook, pkgconfig
|
||||
, dpdk, libconfig, libpcap, numactl, openssl
|
||||
}:
|
||||
}: let
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
dpdk_17_11 = dpdk.overrideAttrs (old: rec {
|
||||
version = "17.11.6";
|
||||
src = fetchurl {
|
||||
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
|
||||
sha256 = "0g4l6yjcn17n18c7q1pxkmnj4fg2kiv0krz7n2vjjsb8s6gmbps2";
|
||||
};
|
||||
});
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "odp-dpdk";
|
||||
version = "1.19.0.0_DPDK_17.11";
|
||||
|
||||
|
@ -12,16 +20,16 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||
buildInputs = [ dpdk libconfig libpcap numactl openssl ];
|
||||
buildInputs = [ dpdk_17_11 libconfig libpcap numactl openssl ];
|
||||
|
||||
RTE_SDK = "${dpdk}/share/dpdk";
|
||||
RTE_SDK = "${dpdk_17_11}/share/dpdk";
|
||||
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
||||
|
||||
dontDisableStatic = true;
|
||||
|
||||
configureFlags = [
|
||||
"--disable-shared"
|
||||
"--with-dpdk-path=${dpdk}"
|
||||
"--with-dpdk-path=${dpdk_17_11}"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue