Skip to content

Commit fef6dd7

Browse files
authored
libarchive: set am_cv_func_iconv_works to yes on darwin (NixOS#508131)
2 parents 14ea16a + 8b72746 commit fef6dd7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkgs/by-name/li/libarchive/package.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ stdenv.mkDerivation (finalAttrs: {
112112

113113
configureFlags = lib.optional (!xarSupport) "--without-xml2";
114114

115+
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
116+
# macOS iconv implementation is slightly broken since Sonoma
117+
# https://github.com/Homebrew/homebrew-core/pull/199639
118+
# https://savannah.gnu.org/bugs/index.php?66541
119+
am_cv_func_iconv_works = "yes";
120+
};
121+
115122
# https://github.com/libarchive/libarchive/issues/1475
116123
doCheck = !stdenv.hostPlatform.isMusl;
117124

0 commit comments

Comments
 (0)