perlPackages.JSON: Fix cross-compilation.

This commit is contained in:
Shea Levy 2018-02-28 12:10:11 -05:00
parent dd6c926362
commit b0d6c67505
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -7646,6 +7646,13 @@ let self = _self // overrides; _self = with self; {
url = mirror://cpan/authors/id/M/MA/MAKAMAKA/JSON-2.90.tar.gz;
sha256 = "127yppvr17qik9pkd1vy901hs4l13kg6rhp76jdgcyask35v7nsd";
};
preConfigure = ''
cp lib/JSON/backportPP.pm{,orig}
echo "1;" > lib/JSON/backportPP.pm
'';
postConfigure = ''
cp lib/JSON/backportPP.pm{,orig}
'';
buildInputs = [ TestPod ];
meta = {
description = "JSON (JavaScript Object Notation) encoder/decoder";