tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
dpdk: 20.05 -> 21.02
Jörg Thalheim
4 years ago
a443ea7d
fa10f148
+9
-5
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
dpdk
default.nix
+9
-5
pkgs/os-specific/linux/dpdk/default.nix
···
8
9
let
10
mod = kernel != null;
11
-
12
in stdenv.mkDerivation rec {
13
-
name = "dpdk-${version}" + lib.optionalString mod "-${kernel.version}";
14
-
version = "20.05";
15
16
src = fetchurl {
17
-
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
18
-
sha256 = "0h0xv2zwb91b9n29afg5ihn06a8q28in64hag2f112kc19f79jj8";
19
};
20
21
nativeBuildInputs = [
···
25
pkg-config
26
python3
27
python3.pkgs.sphinx
0
28
];
29
buildInputs = [
30
jansson
···
42
'';
43
44
mesonFlags = [
0
45
"-Denable_docs=true"
46
"-Denable_kmods=${lib.boolToString mod}"
47
]
0
0
48
++ lib.optional (!shared) "-Ddefault_library=static"
49
++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
50
++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}";
···
8
9
let
10
mod = kernel != null;
11
+
dpdkVersion = "21.02";
12
in stdenv.mkDerivation rec {
13
+
pname = "dpdk";
14
+
version = "${dpdkVersion}" + lib.optionalString mod "-${kernel.version}";
15
16
src = fetchurl {
17
+
url = "https://fast.dpdk.org/rel/dpdk-${dpdkVersion}.tar.xz";
18
+
sha256 = "sha256-CZJKKoJVGqKZeKNoYYT4oQX1L1ZAsb4of1QLLJHpSJs==";
19
};
20
21
nativeBuildInputs = [
···
25
pkg-config
26
python3
27
python3.pkgs.sphinx
28
+
python3.pkgs.pyelftools
29
];
30
buildInputs = [
31
jansson
···
43
'';
44
45
mesonFlags = [
46
+
"-Dtests=false"
47
"-Denable_docs=true"
48
"-Denable_kmods=${lib.boolToString mod}"
49
]
50
+
# kni kernel driver is currently not compatble with 5.11
51
+
++ lib.optional (mod && kernel.kernelOlder "5.11") "-Ddisable_drivers=kni"
52
++ lib.optional (!shared) "-Ddefault_library=static"
53
++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
54
++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}";