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