mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
libxklavier: fix not finding xkbcomp (fixes #3173)
Also refactor the expression a bit, and add description+license.
This commit is contained in:
parent
1596c3a012
commit
45ad922763
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, fetchurl, pkgconfig, libX11, libXi, xkeyboard_config, libxml2
|
||||
, libICE, glib, libxkbfile, isocodes, gobjectIntrospection }:
|
||||
{ stdenv, fetchurl, pkgconfig, xkeyboard_config, libxml2, xorg
|
||||
, glib, isocodes, gobjectIntrospection }:
|
||||
|
||||
let
|
||||
version = "5.3";
|
||||
|
@ -13,18 +13,22 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
# TODO: enable xmodmap support, needs xmodmap DB
|
||||
propagatedBuildInputs = [ libX11 libXi xkeyboard_config libxml2 libICE glib libxkbfile isocodes ];
|
||||
propagatedBuildInputs = with xorg; [ libX11 libXi xkeyboard_config libxml2 libICE glib libxkbfile isocodes ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
buildInputs = [ gobjectIntrospection ];
|
||||
|
||||
configureFlags = ''
|
||||
--with-xkb-base=${xkeyboard_config}/etc/X11/xkb
|
||||
--disable-xmodmap-support
|
||||
'';
|
||||
configureFlags = [
|
||||
"--with-xkb-base=${xkeyboard_config}/etc/X11/xkb"
|
||||
"--with-xkb-bin-base=${xorg.xkbcomp}/bin"
|
||||
"--disable-xmodmap-support"
|
||||
];
|
||||
|
||||
meta = {
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue