From 3b50260bb166a70a661634b3496e920d21a3ae3d Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 25 Sep 2015 20:01:25 +0200 Subject: profiles/base: Patch VirtualBox for kernel 4.3. I could have added this to the upstream , but we only include and support release versions. This fixes the following failed build for VirtualBox: https://headcounter.org/hydra/build/748430 Signed-off-by: aszlig --- modules/user/aszlig/profiles/base.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/user/aszlig/profiles/base.nix b/modules/user/aszlig/profiles/base.nix index 4855f32c..958caeb3 100644 --- a/modules/user/aszlig/profiles/base.nix +++ b/modules/user/aszlig/profiles/base.nix @@ -83,6 +83,17 @@ in { w3m = pkgs.w3m.override { graphicsSupport = true; }; + linuxPackagesFor = kernel: self: let + orig = pkgs.linuxPackagesFor kernel self; + virtualbox = orig.virtualbox.overrideDerivation (drv: { + patches = (drv.patches or []) ++ lib.singleton (pkgs.fetchpatch { + name = "kernel-4.3.patch"; + url = "https://www.virtualbox.org/changeset/57839/vbox" + + "?format=diff"; + sha256 = "0w28iamw9vnh8k447bx2rg3jwxzghkmpa44ni8fbdacjb3br9i9x"; + }); + }); + in orig // { inherit virtualbox; }; }; }; -- cgit 1.4.1