mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
37 lines
943 B
Nix
37 lines
943 B
Nix
{ lib, stdenv, fetchzip, kernel }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dpdk-kmods";
|
|
version = "2023-02-05";
|
|
|
|
src = fetchzip {
|
|
url = "https://git.dpdk.org/dpdk-kmods/snapshot/dpdk-kmods-e721c733cd24206399bebb8f0751b0387c4c1595.tar.xz";
|
|
sha256 = "sha256-AG5Lthp+CPR4R7I23DUmoWAmET8gLEFHHdjk2TUbQn4=";
|
|
};
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
|
];
|
|
KSRC = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
preBuild = "cd linux/igb_uio";
|
|
|
|
installPhase = ''
|
|
make -C ${KSRC} M=$(pwd) modules_install $makeFlags
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Kernel modules for DPDK";
|
|
homepage = "https://git.dpdk.org/dpdk-kmods/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.mic92 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|