summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2016-03-02 21:13:40 +0100
committerPeter Simons <simons@cryp.to>2016-03-02 21:13:40 +0100
commit17d1cd2efa43258b331868708b56c71f162c8c15 (patch)
tree8ea64254466d0875038480f0fb9a32e61c4ef566 /pkgs/development/tools
parent397a0db028116a17036ff78f7b4aa8f020f42405 (diff)
parente3068d7309b788a27534f038370133396c2b377d (diff)
downloadnixlib-17d1cd2efa43258b331868708b56c71f162c8c15.tar
nixlib-17d1cd2efa43258b331868708b56c71f162c8c15.tar.gz
nixlib-17d1cd2efa43258b331868708b56c71f162c8c15.tar.bz2
nixlib-17d1cd2efa43258b331868708b56c71f162c8c15.tar.lz
nixlib-17d1cd2efa43258b331868708b56c71f162c8c15.tar.xz
nixlib-17d1cd2efa43258b331868708b56c71f162c8c15.tar.zst
nixlib-17d1cd2efa43258b331868708b56c71f162c8c15.zip
Merge pull request #11898 from aboseley/flex-cross-notests
flex: disable tests when cross compiling
Diffstat (limited to 'pkgs/development/tools')
-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