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