From e3068d7309b788a27534f038370133396c2b377d Mon Sep 17 00:00:00 2001 From: Adam Boseley Date: Wed, 23 Dec 2015 20:57:34 +1000 Subject: flex: disable tests when cross compiling When cross compiling we can't run the test executables on the build machine --- pkgs/development/tools/parsing/flex/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkgs/development/tools/parsing/flex') diff --git a/pkgs/development/tools/parsing/flex/default.nix b/pkgs/development/tools/parsing/flex/default.nix index 57ce29f51753..dc25633005b6 100644 --- a/pkgs/development/tools/parsing/flex/default.nix +++ b/pkgs/development/tools/parsing/flex/default.nix @@ -17,6 +17,12 @@ stdenv.mkDerivation rec { ''; crossAttrs = { + + # disable tests which can't run on build machine + postPatch = '' + substituteInPlace Makefile.in --replace "tests" " "; + ''; + preConfigure = '' export ac_cv_func_malloc_0_nonnull=yes export ac_cv_func_realloc_0_nonnull=yes -- cgit 1.4.1