From 6837efe3bb2056810a80575befbbaf22e56dec25 Mon Sep 17 00:00:00 2001 From: Ambroz Bizjak Date: Thu, 29 Jan 2015 00:01:52 +0100 Subject: [PATCH] gawk: Fix cross compiling. Note that this does not trigger rebuild for native builds. --- pkgs/tools/text/gawk/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/tools/text/gawk/default.nix b/pkgs/tools/text/gawk/default.nix index ba110640b31..7a14df63ff7 100644 --- a/pkgs/tools/text/gawk/default.nix +++ b/pkgs/tools/text/gawk/default.nix @@ -8,6 +8,16 @@ stdenv.mkDerivation rec { sha256 = "0hin2hswbbd6kd6i4zzvgciwpl5fba8d2s524z8y5qagyz3x010q"; }; + # Fix cross compile (stolen from Gentoo). + # Not needed for 4.1.1. + crossAttrs = { + preConfigure = '' + sed -i \ + -e '/check-recursive all-recursive: check-for-shared-lib-support/d' \ + extension/Makefile.in + ''; + }; + doCheck = !stdenv.isCygwin; # XXX: `test-dup2' segfaults on Cygwin 6.1 buildInputs = [ libsigsegv ]