1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 20:21:32 +03:00

lvgui: Provide customized libxkbcommon

This commit is contained in:
Samuel Dionne-Riel 2020-11-19 17:07:17 -05:00
parent 6c7abb0dac
commit 5467988ca2

View File

@ -21,6 +21,43 @@ let
pkgs.buildPackages.python3
];
});
libxkbcommon = pkgs.callPackage (
{ stdenv
, libxkbcommon
, meson
, ninja
, pkgconfig
, yacc
}:
libxkbcommon.overrideAttrs({...}: {
nativeBuildInputs = [ meson ninja pkgconfig yacc ];
buildInputs = [ ];
mesonFlags = [
"-Denable-wayland=false"
"-Denable-x11=false"
"-Denable-docs=false"
# This is because we're forcing uses of this build
# to define config and locale root; for stage-1 use.
# In stage-2, use the regular xkbcommon lib.
"-Dxkb-config-root=/NEEDS/OVERRIDE/etc/X11/xkb"
"-Dx-locale-root=/NEEDS/OVERRIDE/share/X11/locale"
];
outputs = [ "out" "dev" ];
# Ensures we don't get any stray dependencies.
allowedReferences = [
"out"
"dev"
stdenv.cc.libc_lib
];
})
) {};
in
stdenv.mkDerivation {
pname = "lvgui";
@ -46,6 +83,7 @@ in
buildInputs = [
libevdev
libxkbcommon
]
++ optionals withSimulator simulatorDeps
;