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";
|
|
|
|
version = "0.8.4";
|
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";
|
|
|
|
sha256 = "12vc91ydhphd5sddz15560r41l7k0i7mq6nma8kkbzdp6bwwzpb0";
|
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
|
|
|
|
2019-07-19 15:51:02 +01:00
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [
|
|
|
|
# Fix build on darwin
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/xkbcommon/libxkbcommon/commit/32d178b50fe0da05e51e4fe8903c84371d133331.patch";
|
|
|
|
sha256 = "1wqdjla8hmgdqr8xc2manw363sxrqqsn3s8bd397h3cd7fj3hh1v";
|
|
|
|
})
|
|
|
|
];
|
2019-07-17 22:20:00 +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
|
|
|
};
|
|
|
|
}
|