1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libxkbcommon/default.nix
Marcus Crestani c6de42d4d4 libxkbcommon: Remove --version-script on Darwin
Close #10094. Simplified by vcunat.
2015-09-29 15:30:05 +02:00

27 lines
646 B
Nix

{ stdenv, fetchurl, pkgconfig, yacc, flex, xkeyboard_config, libxcb }:
stdenv.mkDerivation rec {
name = "libxkbcommon-0.5.0";
src = fetchurl {
url = "http://xkbcommon.org/download/${name}.tar.xz";
sha1 = "z9dvxrkcyb4b7f2zybgkrqb9zcxrj9vi";
};
buildInputs = [ pkgconfig yacc flex xkeyboard_config libxcb ];
configureFlags = ''
--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb
'';
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 's/,--version-script=.*$//' Makefile
'';
meta = {
description = "A library to handle keyboard descriptions";
homepage = http://xkbcommon.org;
};
}