xorg.xkeyboardconfig: build with meson

This commit is contained in:
Nick Cao 2023-07-04 11:57:13 +08:00
parent ddbc49bb57
commit c24f38ad30
No known key found for this signature in database

View File

@ -1,7 +1,7 @@
{ abiCompat ? null,
callPackage,
lib, stdenv, makeWrapper, fetchurl, fetchpatch, fetchFromGitLab, buildPackages,
automake, autoconf, libiconv, libtool, intltool,
automake, autoconf, libiconv, libtool, intltool, gettext, python3, perl,
freetype, tradcpp, fontconfig, meson, ninja, ed, fontforge,
libGL, spice-protocol, zlib, libGLU, dbus, libunwind, libdrm, netbsd,
ncompress,
@ -538,10 +538,20 @@ self: super:
});
xkeyboardconfig = super.xkeyboardconfig.overrideAttrs (attrs: {
prePatch = "patchShebangs rules/merge.py";
nativeBuildInputs = attrs.nativeBuildInputs ++ [ intltool libxslt ];
configureFlags = [ "--with-xkb-rules-symlink=xorg" ];
prePatch = ''
patchShebangs rules/merge.py rules/compat/map-variants.py rules/xml2lst.pl
'';
nativeBuildInputs = attrs.nativeBuildInputs ++ [
meson
ninja
python3
perl
libxslt # xsltproc
gettext # msgfmt
];
mesonFlags = [
(lib.mesonBool "xorg-rules-symlinks" true)
];
# 1: compatibility for X11/xkb location
# 2: I think pkg-config/ is supposed to be in /lib/
postInstall = ''