Commit 65b8c451 authored by Colin's avatar Colin
Browse files

wvkbd: support cross compilation

parent 754d2819
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
@@ -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; {