diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index 4ac6e6cf3a92..4425c5621458 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -54,6 +54,7 @@ stdenv.mkDerivation { # Install kernel module cd src kernelVersion=$(cd ${kernel}/lib/modules; ls) + ensureDir $out/lib/modules/$kernelVersion/misc export MODULE_DIR=$out/lib/modules/$kernelVersion/misc ensureDir $MODULE_DIR make install