2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, virtualbox, kernel }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-26 17:43:05 +00:00
|
|
|
pname = "virtualbox-modules";
|
|
|
|
version = "${virtualbox.version}-${kernel.version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = virtualbox.modsrc;
|
|
|
|
hardeningDisable = [
|
|
|
|
"fortify" "pic" "stackprotector"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
KERN_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
|
|
|
|
makeFlags = [ "INSTALL_MOD_PATH=$(out)" ];
|
|
|
|
installTargets = [ "install" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = virtualbox.meta // {
|
|
|
|
description = virtualbox.meta.description + " (kernel modules)";
|
|
|
|
};
|
|
|
|
}
|