2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, yacc, doxygen
|
2021-01-09 13:28:49 +00:00
|
|
|
, xkeyboard_config, libxcb, libxml2
|
|
|
|
, python3
|
|
|
|
, libX11
|
|
|
|
}:
|
2012-12-02 11:21:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-04 10:51:56 +01:00
|
|
|
pname = "libxkbcommon";
|
2021-01-09 13:28:49 +00:00
|
|
|
version = "1.0.3";
|
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";
|
2021-01-09 13:28:49 +00:00
|
|
|
sha256 = "0lmwglj16anhpaq0h830xsl1ivknv75i4lir9bk88aq73s2jy852";
|
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
|
|
|
|
2021-01-09 13:28:49 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config yacc doxygen ];
|
|
|
|
buildInputs = [ xkeyboard_config libxcb libxml2 ];
|
|
|
|
checkInputs = [ python3 ];
|
2012-12-02 11:21:02 +00:00
|
|
|
|
2018-01-30 20:09:46 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dxkb-config-root=${xkeyboard_config}/etc/X11/xkb"
|
2021-01-09 13:28:49 +00:00
|
|
|
"-Dxkb-config-extra-path=/etc/xkb" # default=$sysconfdir/xkb ($out/etc)
|
2018-01-30 20:09:46 +00:00
|
|
|
"-Dx-locale-root=${libX11.out}/share/X11/locale"
|
2021-01-09 13:28:49 +00:00
|
|
|
"-Denable-wayland=false"
|
|
|
|
"-Denable-xkbregistry=false" # Optional, separate library (TODO: Install into extra output)
|
2018-01-30 20:09:46 +00:00
|
|
|
];
|
2015-09-27 16:40:52 +01:00
|
|
|
|
2021-01-09 13:28:49 +00:00
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs ../test/
|
|
|
|
'';
|
2018-04-25 04:20:18 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2012-12-02 11:21:02 +00:00
|
|
|
description = "A library to handle keyboard descriptions";
|
2021-01-09 13:28:49 +00:00
|
|
|
longDescription = ''
|
|
|
|
libxkbcommon is a keyboard keymap compiler and support library which
|
|
|
|
processes a reduced subset of keymaps as defined by the XKB (X Keyboard
|
|
|
|
Extension) specification. It also contains a module for handling Compose
|
|
|
|
and dead keys.
|
|
|
|
''; # and a separate library for listing available keyboard layouts.
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://xkbcommon.org";
|
2021-01-09 13:28:49 +00:00
|
|
|
changelog = "https://github.com/xkbcommon/libxkbcommon/blob/xkbcommon-${version}/NEWS";
|
2016-05-15 05:17:52 +01:00
|
|
|
license = licenses.mit;
|
2021-01-21 17:48:51 +00:00
|
|
|
maintainers = with maintainers; [ primeos ttuegel ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2012-12-02 11:21:02 +00:00
|
|
|
};
|
|
|
|
}
|