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";
|
|
|
|
version = "0.8.4";
|
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";
|
|
|
|
sha256 = "12vc91ydhphd5sddz15560r41l7k0i7mq6nma8kkbzdp6bwwzpb0";
|
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
|
|
|
|
2019-07-19 16:51:02 +02: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 23:20:00 +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
|
|
|
};
|
|
|
|
}
|