git.iko.soy/typeable/nixpkgs
on master help sign in
virtualbox: force xorg-server-1.18 for now

This is getting a little hacky, but hopefully it won't break anything.

commit31eba21d1dab7da2e75be229c542990e8f4b56b6 authorVladimír Čunát <vcunat@gmail.com> dateSun 12 Feb 2017, 21:06 (10 years ago) parent2dba30a
2 files changed+10−1
nixos/modules/services/x11/xserver.nix+2 pkgs/applications/virtualization/virtualbox/guest-additions/default.nix+8−1
nixos/modules/services/x11/xserver.nix+2
@@ -459,6 +459,8 @@ in
459459 knownVideoDrivers;
460460 in optional (driver != null) ({ inherit name; modules = []; driverName = name; } // driver));
461461
462+ nixpkgs.config.xorg = optionalAttrs (elem "vboxvideo" cfg.videoDrivers) { abiCompat = "1.18"; };
463+
462464 assertions =
463465 [ { assertion = config.security.polkit.enable;
464466 message = "X11 requires Polkit to be enabled (‘security.polkit.enable = true’).";
pkgs/applications/virtualization/virtualbox/guest-additions/default.nix+8−1
@@ -4,7 +4,14 @@
44let
55 version = virtualbox.version;
66 xserverVListFunc = builtins.elemAt (stdenv.lib.splitString "." xorg.xorgserver.version);
7− xserverABI = xserverVListFunc 0 + xserverVListFunc 1;
7+
8+ # Forced to 1.18 in <nixpkgs/nixos/modules/services/x11/xserver.nix>
9+ # as it even fails to build otherwise. Still, override this even here,
10+ # in case someone does just a standalone build
11+ # (not via videoDrivers = ["vboxvideo"]).
12+ # It's likely to work again in some future update.
13+ xserverABI = let abi = xserverVListFunc 0 + xserverVListFunc 1;
14+ in if abi == "119" then "118" else abi;
815in
916
1017stdenv.mkDerivation {