From 11c1fc40858776360ddd2366db0571831181df26 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Tue, 12 Feb 2019 19:25:05 +0100 Subject: [PATCH] perlPackages.IOTty: fix darwin sandbox build 2 of the tests fail when sandboxing is enabled, we might want to allow this case in the profile if there are more cases but for now just disable the tests on darwin. warning: TIOCSCTTY failed, slave might not be set as controlling terminal: Operation not permitted at /private/tmp/nix-build-perl5.28.1-IO-Tty-1.12.drv-0/IO-Tty-1.12/blib/lib/IO/Pty.pm line 121. Error: could not connect pty as controlling terminal! no controlling terminal at t/test.t line 68. sysread() failed: at t/test.t line 91. # Looks like your test exited with 255 just after 2. --- pkgs/top-level/perl-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 46c45d1d8d8..b4e93345581 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -7682,6 +7682,7 @@ let url = "mirror://cpan/authors/id/T/TO/TODDR/${name}.tar.gz"; sha256 = "0399anjy3bc0w8xzsc3qx5vcyqryc9gc52lc7wh7i49hsdq8gvx2"; }; + doCheck = !stdenv.isDarwin; # openpty fails in the sandbox }; IPCountry = buildPerlPackage rec {