nixpkgs/pkgs/development/libraries/libxklavier/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

47 lines
1.3 KiB
Nix

{ stdenv, fetchgit, autoreconfHook, pkg-config, gtk-doc, xkeyboard_config, libxml2, xorg, docbook_xsl
, glib, isocodes, gobject-introspection }:
let
version = "5.4";
in
stdenv.mkDerivation rec {
pname = "libxklavier";
inherit version;
src = fetchgit {
url = "git://anongit.freedesktop.org/git/libxklavier";
rev = "${pname}-${version}";
sha256 = "1w1x5mrgly2ldiw3q2r6y620zgd89gk7n90ja46775lhaswxzv7a";
};
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 ];
preAutoreconf = ''
export NOCONFIGURE=1
gtkdocize
'';
configureFlags = [
"--with-xkb-base=${xkeyboard_config}/etc/X11/xkb"
"--with-xkb-bin-base=${xorg.xkbcomp}/bin"
"--disable-xmodmap-support"
"--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;
};
}