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

47 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, gtk-doc, xkeyboard_config, libxml2, xorg, docbook_xsl
, glib, isocodes, gobject-introspection }:
let
2018-07-18 22:14:10 +01:00
version = "5.4";
in
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "libxklavier";
inherit version;
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";
};
2019-12-28 14:35:00 +00:00
patches = [ ./honor-XKB_CONFIG_ROOT.patch ];
outputs = [ "out" "dev" "devdoc" ];
# TODO: enable xmodmap support, needs xmodmap DB
propagatedBuildInputs = with xorg; [ libX11 libXi xkeyboard_config libxml2 libICE glib libxkbfile isocodes ];
nativeBuildInputs = [ autoreconfHook pkg-config gtk-doc docbook_xsl ];
buildInputs = [ gobject-introspection ];
2018-07-18 22:14:10 +01: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 22:14:10 +01:00
"--enable-gtk-doc"
];
meta = with 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;
};
}