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 {
|
2018-01-30 20:09:46 +00:00
|
|
|
name = "libxkbcommon-0.8.0";
|
2012-12-02 11:21:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-30 20:09:46 +00:00
|
|
|
url = "https://xkbcommon.org/download/${name}.tar.xz";
|
|
|
|
sha256 = "0vgy84vfbig5bqznr137h5arjidnfwrxrdli0pxyn2jfn1fjcag8";
|
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
|
|
|
patches = [
|
|
|
|
# darwin compatibility
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/xkbcommon/libxkbcommon/commit/edb1c662394578a54b7bbed231d918925e5d8150.patch;
|
|
|
|
sha256 = "0ydjlir32r3xfsbqhnsx1bz6ags2m908yhf9i09i1s7sgcimbcx5";
|
|
|
|
})
|
2016-06-19 15:15:33 +01:00
|
|
|
];
|
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;
|
2017-02-28 15:26:56 +00:00
|
|
|
maintainers = with maintainers; [ garbas ttuegel ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2012-12-02 11:21:02 +00:00
|
|
|
};
|
|
|
|
}
|