perlPackages.JSON: apply cross-compilation patch only when needed

This commit is contained in:
volth 2018-10-12 09:43:29 +00:00
parent 201d3ef704
commit 16d064cc96

View file

@ -8011,7 +8011,7 @@ let
sha256 = "0nlgdzy40q26z8qhwngsd461glyai8dpwaccyhiljmrkaqwdjxz2";
};
# Do not abort cross-compilation on failure to load native JSON module into host perl
preConfigure = ''
preConfigure = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace Makefile.PL --replace "exit 0;" ""
'';
buildInputs = [ TestPod ];