2016-06-19 14:15:33 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, yacc, flex, xkeyboard_config, libxcb, libX11 }:
|
2012-12-02 11:21:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-03 01:20:23 +00:00
|
|
|
name = "libxkbcommon-0.7.2";
|
2012-12-02 11:21:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-10-05 19:21:21 +00:00
|
|
|
url = "http://xkbcommon.org/download/${name}.tar.xz";
|
2017-10-03 01:20:23 +00:00
|
|
|
sha256 = "1n5rv5n210kjnkyrvbh04gfwaa7zrmzy1393p8nyqfw66lkxr918";
|
2012-12-02 11:21:02 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2015-10-07 19:47:56 +00:00
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ yacc flex xkeyboard_config libxcb ];
|
2012-12-02 11:21:02 +00:00
|
|
|
|
2016-06-19 14:15:33 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb"
|
|
|
|
"--with-x-locale-root=${libX11.out}/share/X11/locale"
|
|
|
|
];
|
2012-12-02 11:21:02 +00:00
|
|
|
|
2015-09-27 15:40:52 +00:00
|
|
|
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
sed -i 's/,--version-script=.*$//' Makefile
|
|
|
|
'';
|
|
|
|
|
2016-05-15 04:17:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-12-02 11:21:02 +00:00
|
|
|
description = "A library to handle keyboard descriptions";
|
|
|
|
homepage = http://xkbcommon.org;
|
2016-05-15 04:17:52 +00:00
|
|
|
license = licenses.mit;
|
2017-02-28 15:26:56 +00:00
|
|
|
maintainers = with maintainers; [ garbas ttuegel ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2012-12-02 11:21:02 +00:00
|
|
|
};
|
|
|
|
}
|