1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/development/libraries/libxkbcommon/default.nix

32 lines
914 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, yacc, flex, xkeyboard_config, libxcb, libX11 }:
stdenv.mkDerivation rec {
2017-02-28 15:26:44 +00:00
name = "libxkbcommon-0.7.1";
src = fetchurl {
url = "http://xkbcommon.org/download/${name}.tar.xz";
2017-02-28 15:26:44 +00:00
sha256 = "ba59305d2e19e47c27ea065c2e0df96ebac6a3c6e97e28ae5620073b6084e68b";
};
outputs = [ "out" "dev" ];
buildInputs = [ pkgconfig yacc flex xkeyboard_config libxcb ];
configureFlags = [
"--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb"
"--with-x-locale-root=${libX11.out}/share/X11/locale"
];
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 's/,--version-script=.*$//' Makefile
'';
meta = with stdenv.lib; {
description = "A library to handle keyboard descriptions";
homepage = http://xkbcommon.org;
license = licenses.mit;
maintainers = with maintainers; [ garbas ttuegel ];
platforms = with platforms; unix;
};
}