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
This commit is contained in:
parent
d5ba15544a
commit
e37a0e09e2
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl, autoreconfHook, acl }:
|
{ lib, stdenv, fetchurl, autoreconfHook, acl, libintl }:
|
||||||
|
|
||||||
# Note: this package is used for bootstrapping fetchurl, and thus
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
||||||
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
||||||
|
@ -31,7 +31,12 @@ stdenv.mkDerivation rec {
|
||||||
outputs = [ "out" "info" ];
|
outputs = [ "out" "info" ];
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook;
|
nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook;
|
||||||
buildInputs = lib.optional stdenv.isLinux acl;
|
# Add libintl on Darwin specifically as it fails to link (or skip)
|
||||||
|
# NLS on it's own:
|
||||||
|
# "_libintl_textdomain", referenced from:
|
||||||
|
# _main in tar.o
|
||||||
|
# ld: symbol(s) not found for architecture x86_64
|
||||||
|
buildInputs = lib.optional stdenv.isLinux acl ++ lib.optional stdenv.isDarwin libintl;
|
||||||
|
|
||||||
# May have some issues with root compilation because the bootstrap tool
|
# May have some issues with root compilation because the bootstrap tool
|
||||||
# cannot be used as a login shell for now.
|
# cannot be used as a login shell for now.
|
||||||
|
|
Loading…
Reference in a new issue