nixpkgs/pkgs/development/libraries/libxkbcommon/default.nix
Vladimír Čunát 2113428989 libxkbcommon: split "dev" output
Referrers look OK.
2015-10-13 20:18:51 +02:00

28 lines
676 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";
};
outputs = [ "dev" "out" ];
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;
};
}