mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
perlPackages.IOTty: Fix RiscV cross-compilation
This commit is contained in:
parent
bd69f7fe98
commit
a6c6250c61
1 changed files with 4 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue