summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/flex
diff options
context:
space:
mode:
authorAdam Boseley <adam.boseley@gmail.com>2015-12-23 20:57:34 +1000
committerAdam Boseley <adam.boseley@gmail.com>2015-12-23 21:05:32 +1000
commite3068d7309b788a27534f038370133396c2b377d (patch)
tree0ff0f6e3a934eec9dba2f56055969d4f743199e4 /pkgs/development/tools/parsing/flex
parentbf9c16d4ace2ea853586c627660953d6a6ccb3dc (diff)
downloadnixlib-e3068d7309b788a27534f038370133396c2b377d.tar
nixlib-e3068d7309b788a27534f038370133396c2b377d.tar.gz
nixlib-e3068d7309b788a27534f038370133396c2b377d.tar.bz2
nixlib-e3068d7309b788a27534f038370133396c2b377d.tar.lz
nixlib-e3068d7309b788a27534f038370133396c2b377d.tar.xz
nixlib-e3068d7309b788a27534f038370133396c2b377d.tar.zst
nixlib-e3068d7309b788a27534f038370133396c2b377d.zip
flex: disable tests when cross compiling
When cross compiling we can't run the test executables
on the build machine
Diffstat (limited to 'pkgs/development/tools/parsing/flex')
-rw-r--r--pkgs/development/tools/parsing/flex/default.nix6
1 files changed, 6 insertions, 0 deletions
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