perl: Work around cross-compilation issue with gcc 7

This commit is contained in:
Shea Levy 2018-02-25 00:40:36 -05:00
parent 3c57e770cf
commit 168b131de4
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -133,7 +133,9 @@ let
sha256 = "072j491rpz2qx2sngbg4flqh4lx5865zyql7b9lqm6s1kknjdrh8";
};
nativeBuildInputs = [ buildPackages.stdenv.cc ];
# Hacky! But not sure how else we can access a native-targeted gcc6
# https://github.com/arsv/perl-cross/issues/60
nativeBuildInputs = [ buildPackages.buildPackages.gcc6 ];
postUnpack = ''
unpackFile ${perl-cross-src}