From b0d6c67505e1df13220c29970cd16e24873f986b Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 28 Feb 2018 12:10:11 -0500 Subject: [PATCH] perlPackages.JSON: Fix cross-compilation. --- pkgs/top-level/perl-packages.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index c92a55721788..39a7a55b30b3 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -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";