···1717 sha256 = "sha256-TWL/NzQux67XSFNTI5MMfPlKz3HDWRiCsmp+pQ8+3BY=";
1818 };
19192020- # avoid retaining reference to CF during stdenv bootstrap
2121- configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [
2222- "gt_cv_func_CFPreferencesCopyAppValue=no"
2323- "gt_cv_func_CFLocaleCopyCurrent=no"
2424- "gt_cv_func_CFLocaleCopyPreferredLanguages=no"
2525- ];
2020+ # GNU tar fails to link libiconv even though the configure script detects it.
2121+ # https://savannah.gnu.org/bugs/index.php?64441
2222+ patches = [ ./link-libiconv.patch ];
26232724 # gnutar tries to call into gettext between `fork` and `exec`,
2825 # which is not safe on darwin.
···33303431 outputs = [ "out" "info" ];
35323636- nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin autoreconfHook
3737- ++ lib.optional (!stdenv.hostPlatform.isDarwin) updateAutotoolsGnuConfigScriptsHook;
3333+ nativeBuildInputs = [ autoreconfHook ];
3434+3835 # Add libintl on Darwin specifically as it fails to link (or skip)
3936 # NLS on it's own:
4037 # "_libintl_textdomain", referenced from: