lol

gnutar: pull missing `libintl` dependency on Darwin

Without the change `gnutar` fails the build as:

"_libintl_setlocale", referenced from:
_main in tar.o
"_libintl_textdomain", referenced from:
_main in tar.o
ld: symbol(s) not found for architecture x86_64

https://hydra.nixos.org/build/228724258/nixlog/2/tail
https://hydra.nixos.org/build/228711328/nixlog/2/tail

+7 -2
+7 -2
pkgs/tools/archivers/gnutar/default.nix
··· 1 - { lib, stdenv, fetchurl, autoreconfHook, acl }: 1 + { lib, stdenv, fetchurl, autoreconfHook, acl, libintl }: 2 2 3 3 # Note: this package is used for bootstrapping fetchurl, and thus 4 4 # cannot use fetchpatch! All mutable patches (generated by GitHub or ··· 31 31 outputs = [ "out" "info" ]; 32 32 33 33 nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook; 34 - buildInputs = lib.optional stdenv.isLinux acl; 34 + # Add libintl on Darwin specifically as it fails to link (or skip) 35 + # NLS on it's own: 36 + # "_libintl_textdomain", referenced from: 37 + # _main in tar.o 38 + # ld: symbol(s) not found for architecture x86_64 39 + buildInputs = lib.optional stdenv.isLinux acl ++ lib.optional stdenv.isDarwin libintl; 35 40 36 41 # May have some issues with root compilation because the bootstrap tool 37 42 # cannot be used as a login shell for now.