2021-03-14 17:50:12 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, bison, flex, xkeyboard_config, libxcb, libX11 }:
|
2018-11-19 00:30:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libxkbcommon-0.7.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://xkbcommon.org/download/${name}.tar.xz";
|
|
|
|
sha256 = "1n5rv5n210kjnkyrvbh04gfwaa7zrmzy1393p8nyqfw66lkxr918";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-03-14 17:50:12 +00:00
|
|
|
buildInputs = [ bison flex xkeyboard_config libxcb ];
|
2018-11-19 00:30:19 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb"
|
|
|
|
"--with-x-locale-root=${libX11.out}/share/X11/locale"
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
preBuild = lib.optionalString stdenv.isDarwin ''
|
2018-11-19 00:30:19 +00:00
|
|
|
sed -i 's/,--version-script=.*$//' Makefile
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-11-19 00:30:19 +00:00
|
|
|
description = "A library to handle keyboard descriptions";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://xkbcommon.org";
|
2018-11-19 00:30:19 +00:00
|
|
|
license = licenses.mit;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
2018-11-19 00:30:19 +00:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|