anchor.diff:  // stdenv.lib.optionalAttrs stdenv.isDarwin {
     makeFlags = "CFLAGS=-D_FORTIFY_SOURCE=0";
   }
  -
  -// stdenv.lib.optionalAttrs stdenv.isCygwin {
  -  patchPhase =
  -   # Make sure `error.c' gets compiled and is part of `libgettextlib.la'.
  -   # This fixes:
  -   # gettext-0.18.1.1/gettext-tools/src/msgcmp.c:371: undefined reference to `_error_message_count'
  -  '' 
  -   sed -i gettext-tools/gnulib-lib/Makefile.in \
  -          -e 's/am_libgettextlib_la_OBJECTS =/am_libgettextlib_la_OBJECTS = error.lo/g'
  -   '';
  -}
  
positive.code:       echo gl_cv_func_wcwidth_works=yes > cachefile
        configureFlags="$configureFlags --cache-file=`pwd`/cachefile"
      fi
    '' + lib.optionalString stdenv.isCygwin ''
      sed -i -e "s/\(am_libgettextlib_la_OBJECTS = \)error.lo/\\1/" gettext-tools/gnulib-lib/Makefile.in
    '';
  
    nativeBuildInputs = [ xz xz.bin ] ++ stdenv.lib.optional (!stdenv.isLinux) libiconv; # HACK, see #10874 (and 14664)
  
    enableParallelBuilding = true;
  
  
negative.code: { stdenv, lib, hostPlatform, fetchurl, libiconv, xz }:
  
  stdenv.mkDerivation rec {
    name = "gettext-${version}";
  