diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-09-25 20:01:25 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-09-25 20:01:25 +0200 |
commit | 3b50260bb166a70a661634b3496e920d21a3ae3d (patch) | |
tree | c865a81cd486c681b8cd744838f75a5b5740f530 | |
parent | a93b7583084ff9084d73873d80d8dc428406593c (diff) |
profiles/base: Patch VirtualBox for kernel 4.3.
I could have added this to the upstream <nixpkgs>, 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 <aszlig@redmoonstudios.org>
-rw-r--r-- | modules/user/aszlig/profiles/base.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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; }; }; }; |