From 65b8c4518a5896e15bc6fce58b6046661b3038cc Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 28 Jul 2023 10:53:28 +0000 Subject: [PATCH] wvkbd: support cross compilation --- .../accessibility/wvkbd/default.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/accessibility/wvkbd/default.nix b/pkgs/applications/accessibility/wvkbd/default.nix index ade7971a844a..8c9ad47726e9 100644 --- a/pkgs/applications/accessibility/wvkbd/default.nix +++ b/pkgs/applications/accessibility/wvkbd/default.nix @@ -22,8 +22,23 @@ stdenv.mkDerivation rec { sha256 = "sha256-5m4aeuCqSJNgerQKyP9M6Qf7P4ijCtCY4Efew6E09Bc="; }; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ wayland-scanner wayland pango glib harfbuzz cairo libxkbcommon ]; + postPatch = '' + substituteInPlace Makefile \ + --replace "pkg-config" "$PKG_CONFIG" + ''; + + nativeBuildInputs = [ + pkg-config + wayland-scanner + ]; + buildInputs = [ + cairo + glib + harfbuzz + libxkbcommon + pango + wayland + ]; installFlags = [ "PREFIX=$(out)" ]; meta = with lib; {