2018-07-18 22:14:10 +01:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, pkgconfig, gtk-doc, xkeyboard_config, libxml2, xorg, docbook_xsl
|
2018-12-02 11:41:15 +00:00
|
|
|
, glib, isocodes, gobject-introspection }:
|
2008-02-18 20:53:36 +00:00
|
|
|
|
2014-03-13 22:12:30 +00:00
|
|
|
let
|
2018-07-18 22:14:10 +01:00
|
|
|
version = "5.4";
|
2014-03-13 22:12:30 +00:00
|
|
|
in
|
2008-02-18 20:53:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "libxklavier";
|
|
|
|
inherit version;
|
2008-02-18 20:53:36 +00:00
|
|
|
|
2018-07-18 22:14:10 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://anongit.freedesktop.org/git/libxklavier";
|
2019-08-13 22:52:01 +01:00
|
|
|
rev = "${pname}-${version}";
|
2018-07-18 22:14:10 +01:00
|
|
|
sha256 = "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a";
|
2008-02-18 20:53:36 +00:00
|
|
|
};
|
|
|
|
|
2019-12-28 14:35:00 +00:00
|
|
|
patches = [ ./honor-XKB_CONFIG_ROOT.patch ];
|
|
|
|
|
2016-09-01 10:07:23 +01:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-10-11 20:34:42 +01:00
|
|
|
|
2010-07-28 16:35:01 +01:00
|
|
|
# TODO: enable xmodmap support, needs xmodmap DB
|
2014-07-06 17:13:18 +01:00
|
|
|
propagatedBuildInputs = with xorg; [ libX11 libXi xkeyboard_config libxml2 libICE glib libxkbfile isocodes ];
|
2011-06-07 22:51:07 +01:00
|
|
|
|
2018-07-18 22:14:10 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig gtk-doc docbook_xsl ];
|
2011-06-07 22:51:07 +01:00
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
buildInputs = [ gobject-introspection ];
|
2014-04-07 17:35:02 +01:00
|
|
|
|
2018-07-18 22:14:10 +01:00
|
|
|
preAutoreconf = ''
|
|
|
|
export NOCONFIGURE=1
|
|
|
|
gtkdocize
|
|
|
|
'';
|
|
|
|
|
2014-07-06 17:13:18 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-xkb-base=${xkeyboard_config}/etc/X11/xkb"
|
|
|
|
"--with-xkb-bin-base=${xorg.xkbcomp}/bin"
|
|
|
|
"--disable-xmodmap-support"
|
2018-07-18 22:14:10 +01:00
|
|
|
"--enable-gtk-doc"
|
2014-07-06 17:13:18 +01:00
|
|
|
];
|
2008-02-18 20:53:36 +00:00
|
|
|
|
2014-07-06 17:13:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library providing high-level API for X Keyboard Extension known as XKB";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://freedesktop.org/wiki/Software/LibXklavier";
|
2014-07-06 17:13:18 +01:00
|
|
|
license = licenses.lgpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.linux;
|
2008-02-18 20:53:36 +00:00
|
|
|
};
|
|
|
|
}
|