libxkbfile: patch for clang36

This commit is contained in:
Eric Seidel 2015-03-24 20:54:47 -07:00
parent 0bfce5bb4a
commit 13dae62ec2
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- libxkbfile-1.0.8/src/cout.c 2012-03-07 20:37:23.000000000 -0800
+++ libxkbfile-1.0.8/src/cout.c 2015-03-24 20:51:11.000000000 -0700
@@ -45,7 +45,7 @@
{
register int i,nOut;
- if ((!xkb)||(!xkb->names)||(!xkb->names->vmods))
+ if ((!xkb)||(!xkb->names))
return False;
for (i=nOut=0;i<XkbNumVirtualMods;i++) {
if (xkb->names->vmods[i]!=None) {

View file

@ -79,6 +79,10 @@ in
nativeBuildInputs = [ args.python ];
};
libxkbfile = attrs: attrs // {
patches = lib.optional (stdenv.cc.cc.isClang or false) ./libxkbfile-clang36.patch;
};
libpciaccess = attrs : attrs // {
patches = [ ./libpciaccess-apple.patch ];
};