nixpkgs/pkgs/development/libraries/libxklavier/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2018-07-18 21:14:10 +00:00
{ stdenv, fetchgit, autoreconfHook, pkgconfig, gtk-doc, xkeyboard_config, libxml2, xorg, docbook_xsl
, glib, isocodes, gobjectIntrospection }:
let
2018-07-18 21:14:10 +00:00
version = "5.4";
in
stdenv.mkDerivation rec {
name = "libxklavier-${version}";
2018-07-18 21:14:10 +00:00
src = fetchgit {
url = "git://anongit.freedesktop.org/git/libxklavier";
rev = name;
sha256 = "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a";
};
outputs = [ "out" "dev" "devdoc" ];
# TODO: enable xmodmap support, needs xmodmap DB
propagatedBuildInputs = with xorg; [ libX11 libXi xkeyboard_config libxml2 libICE glib libxkbfile isocodes ];
2018-07-18 21:14:10 +00:00
nativeBuildInputs = [ autoreconfHook pkgconfig gtk-doc docbook_xsl ];
buildInputs = [ gobjectIntrospection ];
2018-07-18 21:14:10 +00:00
preAutoreconf = ''
export NOCONFIGURE=1
gtkdocize
'';
configureFlags = [
"--with-xkb-base=${xkeyboard_config}/etc/X11/xkb"
"--with-xkb-bin-base=${xorg.xkbcomp}/bin"
"--disable-xmodmap-support"
2018-07-18 21:14:10 +00:00
"--enable-gtk-doc"
];
meta = with stdenv.lib; {
description = "Library providing high-level API for X Keyboard Extension known as XKB";
homepage = http://freedesktop.org/wiki/Software/LibXklavier;
license = licenses.lgpl2Plus;
platforms = platforms.linux;
};
}