mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
perlPackages.IOTty: Fix build on Darwin
Co-authored-by: Stig <git@stig.io>
This commit is contained in:
parent
6b05d3288a
commit
daba2eb22d
13
pkgs/development/perl-modules/IO-Tty-fix-makefile.patch
Normal file
13
pkgs/development/perl-modules/IO-Tty-fix-makefile.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/Makefile.PL b/Makefile.PL
|
||||||
|
index eaf47e0..32766d7 100644
|
||||||
|
--- a/Makefile.PL
|
||||||
|
+++ b/Makefile.PL
|
||||||
|
@@ -146,7 +146,7 @@ extern "C"
|
||||||
|
/* We use char because int might match the return type of a gcc2
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
char $f ();
|
||||||
|
-char (*f) ();
|
||||||
|
+char f;
|
||||||
|
|
||||||
|
#ifdef F77_DUMMY_MAIN
|
||||||
|
# ifdef __cplusplus
|
@ -12950,6 +12950,7 @@ with self; {
|
|||||||
url = "mirror://cpan/authors/id/T/TO/TODDR/IO-Tty-1.17.tar.gz";
|
url = "mirror://cpan/authors/id/T/TO/TODDR/IO-Tty-1.17.tar.gz";
|
||||||
hash = "sha256-pfGoMCC8W13WwbVw9Ix1RuCo9/rBCgaHQLA5Ja2eFOg=";
|
hash = "sha256-pfGoMCC8W13WwbVw9Ix1RuCo9/rBCgaHQLA5Ja2eFOg=";
|
||||||
};
|
};
|
||||||
|
patches = [ ../development/perl-modules/IO-Tty-fix-makefile.patch ];
|
||||||
doCheck = !stdenv.isDarwin; # openpty fails in the sandbox
|
doCheck = !stdenv.isDarwin; # openpty fails in the sandbox
|
||||||
meta = {
|
meta = {
|
||||||
description = "Low-level allocate a pseudo-Tty, import constants";
|
description = "Low-level allocate a pseudo-Tty, import constants";
|
||||||
|
Loading…
Reference in New Issue
Block a user