@ -10,9 +10,19 @@
, libuuid
, numactl
, openssl
, fetchurl
} :
stdenv . mkDerivation rec {
let
# The old version has some CVEs howver they should not affect SPDK's usage of the framework: https://github.com/NixOS/nixpkgs/pull/171648#issuecomment-1121964568
dpdk' = dpdk . overrideAttrs ( old : rec {
name = " d p d k - 2 1 . 1 1 " ;
src = fetchurl {
url = " h t t p s : / / f a s t . d p d k . o r g / r e l / ${ name } . t a r . x z " ;
sha256 = " s h a 2 5 6 - M k b j 7 W j u K z a a X Y v i w G z x C K Z p 4 V f 0 1 B x b y 7 s h a / W r 0 6 E = " ;
} ;
} ) ;
in stdenv . mkDerivation rec {
pname = " s p d k " ;
version = " 2 1 . 1 0 " ;
@ -40,7 +50,7 @@ stdenv.mkDerivation rec {
] ;
buildInputs = [
cunit dpdk libaio libbsd libuuid numactl openssl ncurses
cunit dpdk' libaio libbsd libuuid numactl openssl ncurses
] ;
postPatch = ''
@ -49,7 +59,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true ;
configureFlags = [ " - - w i t h - d p d k = ${ dpdk } " ] ;
configureFlags = [ " - - w i t h - d p d k = ${ dpdk' } " ] ;
NIX_CFLAGS_COMPILE = " - m s s s e 3 " ; # Necessary to compile.
# otherwise does not find strncpy when compiling