2018-01-30 21:09:46 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, meson, ninja, pkgconfig, yacc, xkeyboard_config, libxcb, libX11, doxygen }:
|
2012-12-02 12:21:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-04 11:51:56 +02:00
|
|
|
pname = "libxkbcommon";
|
2019-11-08 09:11:20 +01:00
|
|
|
version = "0.10.0";
|
2012-12-02 12:21:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-07-04 11:51:56 +02:00
|
|
|
url = "https://xkbcommon.org/download/${pname}-${version}.tar.xz";
|
2019-11-08 09:11:20 +01:00
|
|
|
sha256 = "1wmnl0hngn6vrqrya4r8hvimlkr4jag39yjprls4gyrqvh667hsp";
|
2012-12-02 12:21:02 +01:00
|
|
|
};
|
|
|
|
|
2018-01-30 21:09:46 +01:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
2015-10-07 21:47:56 +02:00
|
|
|
|
2018-01-30 21:09:46 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig yacc doxygen ];
|
|
|
|
buildInputs = [ xkeyboard_config libxcb ];
|
2012-12-02 12:21:02 +01:00
|
|
|
|
2018-01-30 21:09:46 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Denable-wayland=false"
|
|
|
|
"-Dxkb-config-root=${xkeyboard_config}/etc/X11/xkb"
|
|
|
|
"-Dx-locale-root=${libX11.out}/share/X11/locale"
|
|
|
|
];
|
2015-09-27 17:40:52 +02:00
|
|
|
|
2018-04-25 05:20:18 +02:00
|
|
|
doCheck = false; # fails, needs unicode locale
|
|
|
|
|
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";
|
2018-01-30 21:09:46 +01:00
|
|
|
homepage = https://xkbcommon.org;
|
2016-05-15 06:17:52 +02:00
|
|
|
license = licenses.mit;
|
2019-07-03 11:27:39 +02:00
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; unix;
|
2012-12-02 12:21:02 +01:00
|
|
|
};
|
|
|
|
}
|