nixos xkb-layouts-exist: try to debug on Hydra

I hate having to do this.  We're unable to reproduce the problem locally.
This commit is contained in:
Vladimír Čunát 2017-06-28 19:47:51 +02:00
parent 607650adac
commit 2014db3efc
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -651,6 +651,7 @@ in
system.extraDependencies = singleton (pkgs.runCommand "xkb-layouts-exist" {
inherit (cfg) layout xkbDir;
} ''
set -x
sed -n -e ':i /^! \(layout\|variant\) *$/ {
:l; n; /^!/bi; s/^ *\([^ ]\+\).*/\1/p; tl
}' "$xkbDir/rules/base.lst" | grep -qxF "$layout" && exec touch "$out"