2014-07-06 18:13:18 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, xkeyboard_config, libxml2, xorg
|
|
|
|
, glib, isocodes, gobjectIntrospection }:
|
2008-02-18 21:53:36 +01:00
|
|
|
|
2014-03-13 23:12:30 +01:00
|
|
|
let
|
|
|
|
version = "5.3";
|
|
|
|
in
|
2008-02-18 21:53:36 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-03-13 23:12:30 +01:00
|
|
|
name = "libxklavier-${version}";
|
2008-02-18 21:53:36 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-13 23:12:30 +01:00
|
|
|
url = "mirror://gnome/sources/libxklavier/${version}/${name}.tar.xz";
|
|
|
|
sha256 = "016lpdv35z0qsw1cprdc2k5qzkdi5waj6qmr0a2q6ljn9g2kpv7b";
|
2008-02-18 21:53:36 +01:00
|
|
|
};
|
|
|
|
|
2016-09-01 11:07:23 +02:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2015-10-11 21:34:42 +02:00
|
|
|
|
2010-07-28 17:35:01 +02:00
|
|
|
# TODO: enable xmodmap support, needs xmodmap DB
|
2014-07-06 18:13:18 +02:00
|
|
|
propagatedBuildInputs = with xorg; [ libX11 libXi xkeyboard_config libxml2 libICE glib libxkbfile isocodes ];
|
2011-06-07 23:51:07 +02:00
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2011-06-07 23:51:07 +02:00
|
|
|
|
2014-04-07 18:35:02 +02:00
|
|
|
buildInputs = [ gobjectIntrospection ];
|
|
|
|
|
2014-07-06 18:13:18 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-xkb-base=${xkeyboard_config}/etc/X11/xkb"
|
|
|
|
"--with-xkb-bin-base=${xorg.xkbcomp}/bin"
|
|
|
|
"--disable-xmodmap-support"
|
|
|
|
];
|
2008-02-18 21:53:36 +01:00
|
|
|
|
2014-07-06 18:13:18 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library providing high-level API for X Keyboard Extension known as XKB";
|
2008-02-18 21:53:36 +01:00
|
|
|
homepage = http://freedesktop.org/wiki/Software/LibXklavier;
|
2014-07-06 18:13:18 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.linux;
|
2008-02-18 21:53:36 +01:00
|
|
|
};
|
|
|
|
}
|
2014-07-06 18:13:18 +02:00
|
|
|
|