File tree Expand file tree Collapse file tree
pkgs/development/libraries/libiconv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,9 +28,13 @@ stdenv.mkDerivation rec {
2828 # https://github.com/NixOS/nixpkgs/pull/192630#discussion_r978985593
2929 hardeningDisable = lib . optional ( stdenv . hostPlatform . libc == "bionic" ) "fortify" ;
3030
31- setupHooks = [
32- ../../../build-support/setup-hooks/role.bash
33- ./setup-hook.sh
31+ setupHooks =
32+ # Match the default behavior on Darwin, which does not automatically link libiconv.
33+ lib . optionals ( ! stdenv . hostPlatform . isDarwin ) [
34+ ../../../build-support/setup-hooks/role.bash
35+ ./setup-hook.sh
36+ ] ;
37+
3438 patches = [
3539 # Add support for the UTF-8-MAC encoding. This is needed for correct behavior of applications that interact with
3640 # the filesystem on Darwin because it uses a variant of NFD to store filenames.
You can’t perform that action at this time.
0 commit comments