mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
24 lines
603 B
Nix
24 lines
603 B
Nix
|
{ stdenv, virtualbox, kernel, strace }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
name = "virtualbox-modules-${virtualbox.version}-${kernel.version}";
|
||
|
src = virtualbox.modsrc;
|
||
|
hardeningDisable = [
|
||
|
"fortify" "pic" "stackprotector"
|
||
|
];
|
||
|
|
||
|
makeFlags = [
|
||
|
"-C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||
|
"INSTALL_MOD_PATH=$(out)"
|
||
|
];
|
||
|
preBuild = "makeFlagsArray+=(\"M=$(pwd)\")";
|
||
|
buildFlags = [ "modules" ];
|
||
|
installTargets = [ "modules_install" ];
|
||
|
|
||
|
enableParallelBuilding = true;
|
||
|
|
||
|
meta = virtualbox.meta // {
|
||
|
description = virtualbox.meta.description + " (kernel modules)";
|
||
|
};
|
||
|
}
|