libxkbcommon: set X11 locale directory (close #16340)

This commit is contained in:
Marius Bakke 2016-06-19 15:15:33 +01:00 committed by Vladimír Čunát
parent 61b8d27b4c
commit 429fdbcd63

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, yacc, flex, xkeyboard_config, libxcb }:
{ stdenv, fetchurl, pkgconfig, yacc, flex, xkeyboard_config, libxcb, libX11 }:
stdenv.mkDerivation rec {
name = "libxkbcommon-0.6.1";
@ -12,9 +12,10 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig yacc flex xkeyboard_config libxcb ];
configureFlags = ''
--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb
'';
configureFlags = [
"--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb"
"--with-x-locale-root=${libX11.out}/share/X11/locale"
];
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 's/,--version-script=.*$//' Makefile