nixpkgs/pkgs/data/misc/xkeyboard-config/default.nix
Eelco Dolstra 1a4d1facda * xkeyboard-config updated to 2.5.1.
svn path=/nixpkgs/branches/x-updates/; revision=34127
2012-05-15 21:30:03 +00:00

26 lines
707 B
Nix

{ stdenv, fetchurl, perl, perlXMLParser, xkbcomp, gettext, intltool }:
stdenv.mkDerivation rec {
name = "xkeyboard-config-2.5.1";
src = fetchurl {
url = "mirror://xorg/individual/data/${name}.tar.bz2";
sha256 = "14ncsbzi8l1dw0ypd36az9kxvrsqfspl3w51zj5p52f373ffi07b";
};
buildInputs = [ gettext ];
buildNativeInputs = [ perl perlXMLParser intltool xkbcomp ];
patches = [ ./eo.patch ];
preConfigure = ''
configureFlags="--with-xkb-base=$out/etc/X11/xkb -with-xkb-rules-symlink=xorg,xfree86 --disable-runtime-deps"
sed -e 's@#!\s*/bin/bash@#! /bin/sh@' -i rules/merge.sh
'';
postInstall = ''
cat ${./level3-deadkeys-us-intl} >> $out/etc/X11/xkb/symbols/us
'';
}