dpdk: 20.05 -> 21.02

+9 -5
+9 -5
pkgs/os-specific/linux/dpdk/default.nix
··· 8 8 9 9 let 10 10 mod = kernel != null; 11 - 11 + dpdkVersion = "21.02"; 12 12 in stdenv.mkDerivation rec { 13 - name = "dpdk-${version}" + lib.optionalString mod "-${kernel.version}"; 14 - version = "20.05"; 13 + pname = "dpdk"; 14 + version = "${dpdkVersion}" + lib.optionalString mod "-${kernel.version}"; 15 15 16 16 src = fetchurl { 17 - url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz"; 18 - sha256 = "0h0xv2zwb91b9n29afg5ihn06a8q28in64hag2f112kc19f79jj8"; 17 + url = "https://fast.dpdk.org/rel/dpdk-${dpdkVersion}.tar.xz"; 18 + sha256 = "sha256-CZJKKoJVGqKZeKNoYYT4oQX1L1ZAsb4of1QLLJHpSJs=="; 19 19 }; 20 20 21 21 nativeBuildInputs = [ ··· 25 25 pkg-config 26 26 python3 27 27 python3.pkgs.sphinx 28 + python3.pkgs.pyelftools 28 29 ]; 29 30 buildInputs = [ 30 31 jansson ··· 42 43 ''; 43 44 44 45 mesonFlags = [ 46 + "-Dtests=false" 45 47 "-Denable_docs=true" 46 48 "-Denable_kmods=${lib.boolToString mod}" 47 49 ] 50 + # kni kernel driver is currently not compatble with 5.11 51 + ++ lib.optional (mod && kernel.kernelOlder "5.11") "-Ddisable_drivers=kni" 48 52 ++ lib.optional (!shared) "-Ddefault_library=static" 49 53 ++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem" 50 54 ++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}";