1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/os-specific/linux/virtualbox/default.nix
2019-05-25 21:39:55 +02:00

23 lines
567 B
Nix

{ stdenv, virtualbox, kernel }:
stdenv.mkDerivation {
name = "virtualbox-modules-${virtualbox.version}-${kernel.version}";
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)";
};
}