From c24f38ad30a59481b1e6fd7d243e8b34be294c91 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 4 Jul 2023 11:57:13 +0800 Subject: [PATCH] xorg.xkeyboardconfig: build with meson --- pkgs/servers/x11/xorg/overrides.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 565461555788..7d6ae61b560b 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -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 = ''