2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, virtualbox, kernel }:
|
2016-09-13 01:42:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-07 19:40:23 +00:00
|
|
|
pname = "virtualbox-modules";
|
|
|
|
version = "${virtualbox.version}-${kernel.version}";
|
2016-09-13 01:42:16 +00:00
|
|
|
src = virtualbox.modsrc;
|
|
|
|
hardeningDisable = [
|
|
|
|
"fortify" "pic" "stackprotector"
|
|
|
|
];
|
|
|
|
|
2017-12-28 08:11:36 +00:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
2017-11-15 15:03:44 +00:00
|
|
|
KERN_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
|
2019-05-25 16:25:05 +00:00
|
|
|
makeFlags = [ "INSTALL_MOD_PATH=$(out)" ];
|
|
|
|
installTargets = [ "install" ];
|
2016-09-13 01:42:16 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = virtualbox.meta // {
|
|
|
|
description = virtualbox.meta.description + " (kernel modules)";
|
|
|
|
};
|
|
|
|
}
|