mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
33a395f195
and add a new line after the alphabetically sorting to please my inner monk
33 lines
920 B
Nix
33 lines
920 B
Nix
{ lib, stdenv, fetchurl, pkg-config, bison, flex, xkeyboard_config, libxcb, libX11 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libxkbcommon-0.7.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://xkbcommon.org/download/${name}.tar.xz";
|
|
sha256 = "1n5rv5n210kjnkyrvbh04gfwaa7zrmzy1393p8nyqfw66lkxr918";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ bison flex xkeyboard_config libxcb ];
|
|
|
|
configureFlags = [
|
|
"--with-xkb-config-root=${xkeyboard_config}/etc/X11/xkb"
|
|
"--with-x-locale-root=${libX11.out}/share/X11/locale"
|
|
];
|
|
|
|
preBuild = lib.optionalString stdenv.isDarwin ''
|
|
sed -i 's/,--version-script=.*$//' Makefile
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A library to handle keyboard descriptions";
|
|
homepage = "https://xkbcommon.org";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|