gnutar: enable strictDeps

This commit is contained in:
Yiyu Zhou
2026-03-24 15:51:28 -07:00
parent 8c9999bc72
commit 9bb5ec2a32

View File

@@ -40,20 +40,16 @@ stdenv.mkDerivation rec {
"info"
];
nativeBuildInputs = [ autoreconfHook ];
strictDeps = true;
nativeBuildInputs = [ autoreconfHook ] ++ lib.optional stdenv.hostPlatform.isCygwin gettext;
# 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 aclSupport acl
++ lib.optional stdenv.hostPlatform.isDarwin libintl
# gettext gets pulled in via autoreconfHook because strictDeps is not set,
# and is linked against. Without this, it doesn't end up in HOST_PATH.
# TODO: enable strictDeps, and either make this dependency explicit, or remove it
++ lib.optional stdenv.hostPlatform.isCygwin gettext;
buildInputs = lib.optional aclSupport acl ++ lib.optional stdenv.hostPlatform.isDarwin libintl;
# May have some issues with root compilation because the bootstrap tool
# cannot be used as a login shell for now.