nixpkgs/pkgs/data/misc/xkeyboard-config/default.nix
Lluís Batlle i Rossell 1c5056a7d7 Updating the xkeyboard_config patch for esperanto with alt_gr
svn path=/nixpkgs/trunk/; revision=15848
2009-06-03 21:21:10 +00:00

28 lines
725 B
Nix

{stdenv, fetchurl, perl, perlXMLParser, xkbcomp, gettext, intltool}:
let version = "1.5"; in
stdenv.mkDerivation {
name = "xkeyboard-config-${version}";
src = fetchurl {
url = "http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-${version}.tar.bz2";
sha256 = "1r276ik3x0jg77zza37ggrnp7zbdvmjyrm9mwxxgzh3bmligy5ff";
};
buildInputs = [perl perlXMLParser xkbcomp gettext intltool];
patches = [ ./eo.patch ];
ICONV = "iconv";
preConfigure = ''
configureFlags="--with-xkb-base=$out/etc/X11/xkb -with-xkb-rules-symlink=xorg,xfree86"
sed -e 's@#!\s*/bin/bash@#! /bin/sh@' -i rules/merge.sh
'';
postInstall = ''
cat ${./level3-deadkeys-us-intl} >> $out/etc/X11/xkb/symbols/us
'';
}