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