perlPackages.IOTty: Fix RiscV cross-compilation

This commit is contained in:
Jonas Heinrich 2025-05-28 07:37:59 +02:00
parent bd69f7fe98
commit a6c6250c61

View file

@ -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";