summary refs log tree commit diff
path: root/pkgs/development/libraries/libxkbcommon
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-07-17 16:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-07-17 16:20:00 -0500
commit95fadbc06d33977fc402b5df99ea274bace5dc1b (patch)
tree468abbbcd482180f27e2052392e3328dbb4be171 /pkgs/development/libraries/libxkbcommon
parent9aff2ef415aa3f6b943df59f0d3761359d0cd2bf (diff)
downloadnixpkgs-95fadbc06d33977fc402b5df99ea274bace5dc1b.tar
nixpkgs-95fadbc06d33977fc402b5df99ea274bace5dc1b.tar.gz
nixpkgs-95fadbc06d33977fc402b5df99ea274bace5dc1b.tar.bz2
nixpkgs-95fadbc06d33977fc402b5df99ea274bace5dc1b.tar.lz
nixpkgs-95fadbc06d33977fc402b5df99ea274bace5dc1b.tar.xz
nixpkgs-95fadbc06d33977fc402b5df99ea274bace5dc1b.tar.zst
nixpkgs-95fadbc06d33977fc402b5df99ea274bace5dc1b.zip
libxkbcommon: fix build on darwin
Diffstat (limited to 'pkgs/development/libraries/libxkbcommon')
-rw-r--r--pkgs/development/libraries/libxkbcommon/default.nix6
1 files changed, 6 insertions, 0 deletions
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; {