···11, perl
12, luajit
13, darwin
014, python3
15}:
16···127 --replace " -L${stdenv.cc.libc}/lib" "" \
128 --replace " -L${darwin.libobjc}/lib" "" \
129 --replace " -L${darwin.libunwind}/lib" "" \
130- --replace " -L${darwin.libiconv}/lib" ""
131132 # All the libraries we stripped have -osx- in their name as of this time.
133 # Assert now that this pattern no longer appears in config.mk.
···11, perl
12, luajit
13, darwin
14+, libiconv
15, python3
16}:
17···128 --replace " -L${stdenv.cc.libc}/lib" "" \
129 --replace " -L${darwin.libobjc}/lib" "" \
130 --replace " -L${darwin.libunwind}/lib" "" \
131+ --replace " -L${libiconv}/lib" ""
132133 # All the libraries we stripped have -osx- in their name as of this time.
134 # Assert now that this pattern no longer appears in config.mk.
···2273722738 # GNU libc provides libiconv so systems with glibc don't need to
22739 # build libiconv separately. Additionally, Apple forked/repackaged
22740- # libiconv so we use that instead of the vanilla version on that OS,
22741 # and BSDs include libiconv in libc.
22742 #
22743 # We also provide `libiconvReal`, which will always be a standalone libiconv,
···22748 then libcCross
22749 else stdenv.cc.libc)
22750 else if stdenv.hostPlatform.isDarwin
22751- then darwin.libiconv
22752 else libiconvReal;
2275322754 libcIconv = libc: let
···22765 if lib.elem stdenv.hostPlatform.libc [ "glibc" "musl" ] then
22766 lib.getBin stdenv.cc.libc
22767 else if stdenv.hostPlatform.isDarwin then
22768- lib.getBin darwin.libiconv
22769 else
22770 lib.getBin libiconvReal;
22771
···2273722738 # GNU libc provides libiconv so systems with glibc don't need to
22739 # build libiconv separately. Additionally, Apple forked/repackaged
22740+ # libiconv, so build and use the upstream one with a compatible ABI,
22741 # and BSDs include libiconv in libc.
22742 #
22743 # We also provide `libiconvReal`, which will always be a standalone libiconv,
···22748 then libcCross
22749 else stdenv.cc.libc)
22750 else if stdenv.hostPlatform.isDarwin
22751+ then libiconvReal.override { enableDarwinABICompat = true; }
22752 else libiconvReal;
2275322754 libcIconv = libc: let
···22765 if lib.elem stdenv.hostPlatform.libc [ "glibc" "musl" ] then
22766 lib.getBin stdenv.cc.libc
22767 else if stdenv.hostPlatform.isDarwin then
22768+ lib.getBin libiconv
22769 else
22770 lib.getBin libiconvReal;
22771
+4
pkgs/top-level/darwin-aliases.nix
···50 ### B ###
5152 builder = throw "'darwin.builder' has been changed and renamed to 'darwin.linux-builder'. The default ssh port is now 31022. Please update your configuration or override the port back to 22. See https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder"; # added 2023-07-06
000053})
···50 ### B ###
5152 builder = throw "'darwin.builder' has been changed and renamed to 'darwin.linux-builder'. The default ssh port is now 31022. Please update your configuration or override the port back to 22. See https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder"; # added 2023-07-06
53+54+ ### L ###
55+56+ libiconv = pkgs.libiconv; # 2024-03-27
57})