2011-07-21 13:14:20 +01:00
|
|
|
{ stdenv, fetchurl, perl, perlXMLParser, xkbcomp, gettext, intltool }:
|
2007-03-29 22:02:22 +01:00
|
|
|
|
2010-07-18 22:51:33 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-05-15 22:30:03 +01:00
|
|
|
name = "xkeyboard-config-2.5.1";
|
2007-03-29 22:02:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-05-15 22:30:03 +01:00
|
|
|
url = "mirror://xorg/individual/data/${name}.tar.bz2";
|
|
|
|
sha256 = "14ncsbzi8l1dw0ypd36az9kxvrsqfspl3w51zj5p52f373ffi07b";
|
2007-03-29 22:02:22 +01:00
|
|
|
};
|
|
|
|
|
2011-12-03 09:07:56 +00:00
|
|
|
buildInputs = [ gettext ];
|
|
|
|
|
|
|
|
buildNativeInputs = [ perl perlXMLParser intltool xkbcomp ];
|
2007-03-29 22:02:22 +01:00
|
|
|
|
2009-06-03 22:21:10 +01:00
|
|
|
patches = [ ./eo.patch ];
|
|
|
|
|
2008-10-09 13:12:58 +01:00
|
|
|
preConfigure = ''
|
2012-05-15 22:30:03 +01:00
|
|
|
configureFlags="--with-xkb-base=$out/etc/X11/xkb -with-xkb-rules-symlink=xorg,xfree86 --disable-runtime-deps"
|
2009-05-05 10:55:20 +01:00
|
|
|
sed -e 's@#!\s*/bin/bash@#! /bin/sh@' -i rules/merge.sh
|
2008-10-09 13:12:58 +01:00
|
|
|
'';
|
2007-08-02 22:28:26 +01:00
|
|
|
|
2008-01-10 08:01:48 +00:00
|
|
|
postInstall = ''
|
2008-10-09 13:12:58 +01:00
|
|
|
cat ${./level3-deadkeys-us-intl} >> $out/etc/X11/xkb/symbols/us
|
2008-01-10 08:01:48 +00:00
|
|
|
'';
|
2007-03-29 22:02:22 +01:00
|
|
|
}
|