mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
libxkbcommon: 1.5.0 -> 1.7.0
Changes: - https://github.com/xkbcommon/libxkbcommon/blob/xkbcommon-1.6.0/NEWS - https://github.com/xkbcommon/libxkbcommon/blob/xkbcommon-1.7.0/NEWS.md
This commit is contained in:
parent
1f8326abea
commit
8dd1681c21
@ -13,6 +13,7 @@
|
||||
, libX11
|
||||
# To enable the "interactive-wayland" subcommand of xkbcli. This is the
|
||||
# wayland equivalent of `xev` on X11.
|
||||
, xorgserver # for Xvfb in tests
|
||||
, withWaylandTools ? stdenv.isLinux
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
@ -22,17 +23,22 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libxkbcommon";
|
||||
version = "1.5.0";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = with finalAttrs; "https://xkbcommon.org/download/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-Vg8RxLu8oQ9JXz7306aqTKYrT4+wtS59RZ0Yom5G4Bc=";
|
||||
hash = "sha256-ZXgvChCktFWvnGuqtwQOL1N1IMqi7CCSgFzf02hjskc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Disable one Xvfb test as it fails for permission checks.
|
||||
./disable-x11com.patch
|
||||
];
|
||||
|
||||
outputs = [ "out" "dev" "doc" ];
|
||||
|
||||
depsBuildBuild = [ pkg-config ];
|
||||
nativeBuildInputs = [ meson ninja pkg-config bison doxygen ]
|
||||
nativeBuildInputs = [ meson ninja pkg-config bison doxygen xorgserver ]
|
||||
++ lib.optional withWaylandTools wayland-scanner;
|
||||
buildInputs = [ xkeyboard_config libxcb libxml2 ]
|
||||
++ lib.optionals withWaylandTools [ wayland wayland-protocols ];
|
||||
@ -42,6 +48,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-Dxkb-config-root=${xkeyboard_config}/etc/X11/xkb"
|
||||
"-Dxkb-config-extra-path=/etc/xkb" # default=$sysconfdir/xkb ($out/etc)
|
||||
"-Dx-locale-root=${libX11.out}/share/X11/locale"
|
||||
"-Denable-docs=true"
|
||||
"-Denable-wayland=${lib.boolToString withWaylandTools}"
|
||||
];
|
||||
|
||||
|
17
pkgs/development/libraries/libxkbcommon/disable-x11com.patch
Normal file
17
pkgs/development/libraries/libxkbcommon/disable-x11com.patch
Normal file
@ -0,0 +1,17 @@
|
||||
On nixpkgs /tmp/.X11-unix is not compatible with Xvfb requirement and the
|
||||
test fails.
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -775,12 +775,6 @@ if get_option('enable-x11')
|
||||
env: test_env,
|
||||
is_parallel : false,
|
||||
)
|
||||
- test(
|
||||
- 'x11comp',
|
||||
- executable('test-x11comp', 'test/x11comp.c', dependencies: x11_test_dep),
|
||||
- env: test_env,
|
||||
- is_parallel : false,
|
||||
- )
|
||||
endif
|
||||
if get_option('enable-xkbregistry')
|
||||
test(
|
Loading…
Reference in New Issue
Block a user