From 5f01a1d8b68541863e3281296e4fe112f124fc30 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 31 Mar 2012 15:57:35 +0000 Subject: [PATCH] Let virtualbox build on linux 3.3+ svn path=/nixpkgs/trunk/; revision=33498 --- pkgs/applications/virtualization/virtualbox/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index 9fa26eba4ab0..350b73e339f5 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -13,6 +13,8 @@ let version = "4.1.10"; in stdenv.mkDerivation { name = "virtualbox-${version}-${kernel.version}"; + NIX_CFLAGS_COMPILE="-I${kernel}/lib/modules/${kernel.modDirVersion}/build/include/generated"; + src = fetchurl { url = "http://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"; sha256 = "1gsp3arp79x6gmh403sayh4lzr3l8fc3anp664fyl1dl0ykgmqs7";