Skip to content

Commit

Permalink
libxklavier: fix not finding xkbcomp (fixes NixOS#3173)
Browse files Browse the repository at this point in the history
Also refactor the expression a bit,
and add description+license.
  • Loading branch information
vcunat committed Jul 7, 2014
1 parent 1596c3a commit 45ad922
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions pkgs/development/libraries/libxklavier/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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;
};
}

0 comments on commit 45ad922

Please sign in to comment.