2014-08-03 15:33:19 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, yacc, flex, xkeyboard_config, libxcb }:
|
2012-12-02 11:21:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-04 19:01:34 +01:00
|
|
|
name = "libxkbcommon-0.5.0";
|
2012-12-02 11:21:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-05 20:21:21 +01:00
|
|
|
url = "http://xkbcommon.org/download/${name}.tar.xz";
|
2016-03-11 19:03:07 +00:00
|
|
|
sha256 = "176ii5dn2wh74q48sd8ac37ljlvgvp5f506glr96z6ibfhj7igch";
|
2012-12-02 11:21:02 +00:00
|
|
|
};
|
|
|
|
|
2015-10-07 20:47:56 +01:00
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2014-08-03 15:33:19 +01:00
|
|
|
buildInputs = [ pkgconfig yacc flex xkeyboard_config libxcb ];
|
2012-12-02 11:21:02 +00:00
|
|
|
|
|
|
|
configureFlags = ''
|
|
|
|
--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb
|
|
|
|
'';
|
|
|
|
|
2015-09-27 16:40:52 +01:00
|
|
|
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
sed -i 's/,--version-script=.*$//' Makefile
|
|
|
|
'';
|
|
|
|
|
2012-12-02 11:21:02 +00:00
|
|
|
meta = {
|
|
|
|
description = "A library to handle keyboard descriptions";
|
|
|
|
homepage = http://xkbcommon.org;
|
|
|
|
};
|
|
|
|
}
|