From 95fadbc06d33977fc402b5df99ea274bace5dc1b Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 17 Jul 2019 16:20:00 -0500 Subject: [PATCH] libxkbcommon: fix build on darwin --- pkgs/development/libraries/libxkbcommon/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/libxkbcommon/default.nix b/pkgs/development/libraries/libxkbcommon/default.nix index 9b43c449e9a..ec4c904795f 100644 --- a/pkgs/development/libraries/libxkbcommon/default.nix +++ b/pkgs/development/libraries/libxkbcommon/default.nix @@ -20,6 +20,12 @@ stdenv.mkDerivation rec { "-Dx-locale-root=${libX11.out}/share/X11/locale" ]; + # Remove example program which fail on Darwin + postPatch = if stdenv.isDarwin then '' + substituteInPlace meson.build \ + --replace "executable('rmlvo-to-keymap', 'test/rmlvo-to-keymap.c', dependencies: test_dep)" "" + '' else null; + doCheck = false; # fails, needs unicode locale meta = with stdenv.lib; {