nixos/xserver: fix xkbvalidate for cross compiling.

xserver uses the wrong version of xkbvalidate, the one from
buildPackages should be used or else the resulting xkbvalidate binary is
compiled for the target architecture.
This commit is contained in:
Simon Pettersson 2020-10-04 16:17:25 +02:00 committed by Bjørn Forsman
parent e209807f0d
commit b2efedd5e5

View file

@ -716,7 +716,7 @@ in
system.extraDependencies = singleton (pkgs.runCommand "xkb-validated" {
inherit (cfg) xkbModel layout xkbVariant xkbOptions;
nativeBuildInputs = [ pkgs.xkbvalidate ];
nativeBuildInputs = with pkgs.buildPackages; [ xkbvalidate ];
preferLocalBuild = true;
} ''
xkbvalidate "$xkbModel" "$layout" "$xkbVariant" "$xkbOptions"