1 { lib, stdenv, fetchzip, kernel }:
3 stdenv.mkDerivation rec {
5 version = "2023-02-05";
8 url = "https://git.dpdk.org/dpdk-kmods/snapshot/dpdk-kmods-e721c733cd24206399bebb8f0751b0387c4c1595.tar.xz";
9 sha256 = "sha256-AG5Lthp+CPR4R7I23DUmoWAmET8gLEFHHdjk2TUbQn4=";
12 hardeningDisable = [ "pic" ];
14 makeFlags = kernel.makeFlags ++ [
15 "INSTALL_MOD_PATH=${placeholder "out"}"
17 KSRC = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
19 nativeBuildInputs = kernel.moduleBuildDependencies;
21 preBuild = "cd linux/igb_uio";
24 make -C ${KSRC} M=$(pwd) modules_install $makeFlags
27 enableParallelBuilding = true;
30 description = "Kernel modules for DPDK";
31 homepage = "https://git.dpdk.org/dpdk-kmods/";
32 license = licenses.gpl2Only;
33 maintainers = [ maintainers.mic92 ];
34 platforms = platforms.linux;