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.
This commit is contained in:
Daiderd Jordan 2019-02-12 19:25:05 +01:00
parent 91c7157919
commit 11c1fc4085
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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 {