diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 67be5a8cfe4d..da3aea3fd807 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -17730,6 +17730,10 @@ with self; url = "mirror://cpan/authors/id/T/TO/TODDR/IO-Tty-${version}.tar.gz"; hash = "sha256-sVMJ/IViOJMonLmyuI36ntHmkVa3XymThVOkW+bXMK8="; }; + # Fix dynamic loading not available when cross compiling + postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' + sed -i '/use IO::File/d' Makefile.PL + ''; doCheck = !stdenv.hostPlatform.isDarwin; # openpty fails in the sandbox meta = { homepage = "https://github.com/toddr/IO-Tty";