1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

cygwin: perl-Encode-Locale fix

disabling tests which test setting environment variable with a name outside
7-bit ASCII.  this causes a segmentation fault in cygwin.
This commit is contained in:
Rok Garbas 2015-06-03 15:21:40 +02:00
parent bcc8eeca48
commit 7b2448d021

View file

@ -3384,6 +3384,11 @@ let self = _self // overrides; _self = with self; {
url = "mirror://cpan/modules/by-module/Encode/${name}.tar.gz";
sha256 = "0m9d1vdphlyzybgmdanipwd9ndfvyjgk3hzw250r299jjgh3fqzp";
};
preCheck = if stdenv.isCygwin then ''
sed -i"" -e "s@plan tests => 13@plan tests => 10@" t/env.t
sed -i"" -e "s@ok(env(\"\\\x@#ok(env(\"\\\x@" t/env.t
sed -i"" -e "s@ok(\$ENV{\"\\\x@#ok(\$ENV{\"\\\x@" t/env.t
'' else null;
};
EnvPath = buildPerlPackage {