1 { stdenv, virtualbox, kernel }:
4 pname = "virtualbox-modules";
5 version = "${virtualbox.version}-${kernel.version}";
6 src = virtualbox.modsrc;
8 "fortify" "pic" "stackprotector"
11 nativeBuildInputs = kernel.moduleBuildDependencies;
13 KERN_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
15 makeFlags = [ "INSTALL_MOD_PATH=$(out)" ];
16 installTargets = [ "install" ];
18 enableParallelBuilding = true;
20 meta = virtualbox.meta // {
21 description = virtualbox.meta.description + " (kernel modules)";