nixpkgs/pkgs/os-specific/linux/virtualbox/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
583 B
Nix
Raw Normal View History

{ stdenv, virtualbox, kernel }:
stdenv.mkDerivation {
pname = "virtualbox-modules";
version = "${virtualbox.version}-${kernel.version}";
src = virtualbox.modsrc;
hardeningDisable = [
"fortify" "pic" "stackprotector"
];
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" ];
enableParallelBuilding = true;
meta = virtualbox.meta // {
description = virtualbox.meta.description + " (kernel modules)";
};
}